My goal was to make my Pi create its own WiFi on start so that I can connect to it wirelessly.
I have succeeded by creating a crontab entry (using sudo crontab -e):
@reboot /path/to/create_ap.sh &
where create_ap.sh is a script launching create_ap:
#!/bin/bash
sudo create_ap -n wlan0 MySSID MyPass --daemon
However, I've failed to do this without an additional script: both
@reboot create_ap -n wlan0 MySSID MyPass --daemon
and
@reboot create_ap -n wlan0 MySSID MyPass --daemon &
didn't work as expected (I've also tried to add full path, /usr/bin/create_ap like suggested in comments but that didn't help).
So does crontab allow parameters after the command? (I suspect that only @reboot create_ap bit works in practice, but failed to google that) Or is there some other problem with these lines in crontab and I can adjust them so that an external script is not needed?