move cron install to boot config script
This commit is contained in:
parent
e146811553
commit
312fbe78b0
@ -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
|
||||||
|
17
README.md
17
README.md
@ -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 ~
|
||||||
|
Loading…
Reference in New Issue
Block a user