[modify] add reboot function and initialization on startup

This commit is contained in:
gitea 2023-09-08 16:52:07 +08:00
parent 20813a992f
commit 90aea333fd
2 changed files with 5 additions and 2 deletions

View File

@ -2,8 +2,9 @@
#==============================================================================
/usr/bin/qbittorrent-nox --webui-port=10005 -d
/usr/bin/bash /opt/scripts/update/calibre.sh
# /usr/bin/bash /opt/scripts/update/calibre.sh
mv /opt/wd/99-Temp/shutdown /opt/wd/99-Temp/shutdown.old
mv /opt/wd/99-Temp/reboot /opt/wd/99-Temp/reboot.old
#==============================================================================
ip link set enp1s0 promisc on
ip link set enp2s0 promisc on
@ -12,7 +13,7 @@ ip link set wlx90de80ca01ec promisc on
sleep 20
/usr/bin/bash /opt/scripts/update/macvlan.sh
#==============================================================================
nohup /usr/bin/bash /opt/scripts/update/jekyll_update.sh > /dev/null 2>&1 &
# nohup /usr/bin/bash /opt/scripts/update/jekyll_update.sh > /dev/null 2>&1 &
# /usr/bin/mount -t ext4 -w UUID="b7c2c4b8-bfde-479b-80bb-655432a433b8" /opt/wd

View File

@ -4,6 +4,8 @@
if [[ -f "/opt/wd/99-Temp/shutdown" ]]; then
poweroff
elif [[ -f "/opt/wd/99-Temp/reboot" ]]; then
reboot
fi