[modify] add reboot function and initialization on startup
This commit is contained in:
parent
20813a992f
commit
90aea333fd
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
/usr/bin/qbittorrent-nox --webui-port=10005 -d
|
/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/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 enp1s0 promisc on
|
||||||
ip link set enp2s0 promisc on
|
ip link set enp2s0 promisc on
|
||||||
@ -12,7 +13,7 @@ ip link set wlx90de80ca01ec promisc on
|
|||||||
sleep 20
|
sleep 20
|
||||||
/usr/bin/bash /opt/scripts/update/macvlan.sh
|
/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
|
# /usr/bin/mount -t ext4 -w UUID="b7c2c4b8-bfde-479b-80bb-655432a433b8" /opt/wd
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
if [[ -f "/opt/wd/99-Temp/shutdown" ]]; then
|
if [[ -f "/opt/wd/99-Temp/shutdown" ]]; then
|
||||||
poweroff
|
poweroff
|
||||||
|
elif [[ -f "/opt/wd/99-Temp/reboot" ]]; then
|
||||||
|
reboot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user