Update config/autostart.sh

This commit is contained in:
2025-07-12 18:45:37 +00:00
parent b774ae72c1
commit c9d496518a

View File

@@ -21,25 +21,7 @@ time=20
#Use if URL to Image is being used.
#Set content 1 = Video and/or images 4 = Debug
content=1
#
#Update network
#export wifiupdate=false
#export essid=whit
#export wifipassword=whitwhit
#export updatehost=whit1
#If you want to control the IP address please use dhcp reservation.
#or manually set it up
#
#
#If you are setting url you need to add to crontab -e to update the image every 15 mins, and enable urlchrome setting
#Change localhost to the
#sudo crontab -e
#0/15 * * * * "chromium-browser --headless --window-size=1920x1080 --virtual-time-budget=25000 --screenshot=/home/$USER/WHIT/working/calander.png http://localhost"
#urlchrome="chromium-browser --headless --window-size=1920x1080 --virtual-time-budget=25000 --screenshot=/home/$USER/WHIT/working/calander.png http://localhost"
#when do you want the reboot to happen, 24 hour clock 0 = midnight
#export reboottime=01:50
#export overscan=1
#export rotation=0
@@ -65,7 +47,7 @@ if [ $protocal = 1 ]; then
echo $(date):Connecting to cifs share "$Server" to mounting point /mnt/whit >> /home/$USER/WHIT/config/boot.log
sudo mount -t cifs -o username=$USERNAME,password=$PASSWORD $Server /mnt/whit
else
echo $(date):Connecting to ftp share $Server to mounting point /mnt/whit >> /home/$USER/WHIT/config/boot.log
echo $(date):Connecting to ftp share "$Server" to mounting point /mnt/whit >> /home/$USER/WHIT/config/boot.log
sudo curlftpfs -o allow_other $USERNAME:$PASSWORD@$Server /mnt/whit/
fi