Do the startup steps manually and call
Or maybe edit
which is dirty, but we can maybe presume that hostapd is not running when that script is called and it will eventually terminate with some error, thus not blocking the rest of the script.
Good Luck!^^
hostapd -dd /opt/piratebox/conf/hostapd.conf? It produces some output for me at least...
Or maybe edit
start-stop-daemon -m -S -b -p $PIDFILE_HOSTAPN -x /usr/sbin/hostapd -- $CONF_APNin the piratebox_alt script to something like
/usr/sbin/hostapd -dd $CONF_APN >> /opt/piratebox/hostapd.log
which is dirty, but we can maybe presume that hostapd is not running when that script is called and it will eventually terminate with some error, thus not blocking the rest of the script.
Good Luck!^^