move cron install to boot config script

This commit is contained in:
c0de 2023-10-09 19:08:41 -05:00
parent e146811553
commit 312fbe78b0
2 changed files with 3 additions and 17 deletions

View File

@ -20,3 +20,6 @@ sudo touch /boot/ssh.txt
sudo sed -i 's/exit 0//g' /etc/rc.local sudo sed -i 's/exit 0//g' /etc/rc.local
echo "/usr/bin/tvservice -o" | sudo tee -a /etc/rc.local echo "/usr/bin/tvservice -o" | sudo tee -a /etc/rc.local
echo "exit 0" | 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

View File

@ -17,23 +17,6 @@
1. Configure boot configuration: `bash 03_update_boot_config.sh` 1. Configure boot configuration: `bash 03_update_boot_config.sh`
1. Reboot the pi: `sudo reboot now` 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 <path to fintic>/startup.sh &
```
dont forget the ampersand!
also make sure that the paths in startup.sh are correct for your install location
## Install the hotspot ## Install the hotspot
```console ```console
cd ~ cd ~