diff --git a/03_update_boot_config.sh b/03_update_boot_config.sh index bfbf0d2..5a5f900 100644 --- a/03_update_boot_config.sh +++ b/03_update_boot_config.sh @@ -20,3 +20,6 @@ sudo touch /boot/ssh.txt sudo sed -i 's/exit 0//g' /etc/rc.local echo "/usr/bin/tvservice -o" | sudo tee -a /etc/rc.local echo "exit 0" | sudo tee -a /etc/rc.local + +# Run startup script at reboot; Register to cron for pi user +echo "@reboot sudo -E bash $HOME/fintic/startup.sh &" | sudo tee -a /var/spool/cron/pi diff --git a/README.md b/README.md index 5c8dc8a..ad03cd7 100755 --- a/README.md +++ b/README.md @@ -17,23 +17,6 @@ 1. Configure boot configuration: `bash 03_update_boot_config.sh` 1. Reboot the pi: `sudo reboot now` -## Set to run at startup - -add the startup script to crotab. Open the crontab -```console -crontab -e -``` - -add the line - -```console -@reboot sudo -E /startup.sh & -``` - -dont forget the ampersand! - -also make sure that the paths in startup.sh are correct for your install location - ## Install the hotspot ```console cd ~