mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv
This commit is contained in:
commit
2b840b1dd5
@ -39,9 +39,9 @@ fi
|
|||||||
# starting autostart script (will be removed later again, dont use it!!!)
|
# starting autostart script (will be removed later again, dont use it!!!)
|
||||||
AUTOSTART="/storage/.config/autostart.sh"
|
AUTOSTART="/storage/.config/autostart.sh"
|
||||||
if [ -f $AUTOSTART ]; then
|
if [ -f $AUTOSTART ]; then
|
||||||
echo "!!! AUTOSTART script detected !!!" >> /var/log/messages
|
echo '!!! AUTOSTART script detected !!!' | logger -t Boot
|
||||||
cat "$AUTOSTART" >> /var/log/messages
|
cat "$AUTOSTART" | logger -t Boot
|
||||||
echo "!!! -End of autostart script- !!!" >> /var/log/messages
|
echo '!!! -End of autostart script- !!!' | logger -t Boot
|
||||||
|
|
||||||
sh $AUTOSTART
|
sh $AUTOSTART
|
||||||
fi
|
fi
|
||||||
|
@ -27,7 +27,18 @@
|
|||||||
omit_pids+=( $@ )
|
omit_pids+=( $@ )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_shutdown_script () {
|
||||||
|
SHUTDOWN="/storage/.config/shutdown.sh"
|
||||||
|
if [ -f $SHUTDOWN ]; then
|
||||||
|
echo '!!! SHUTDOWN script detected !!!' | logger -t shutdown.sh
|
||||||
|
cat "$SHUTDOWN" | logger -t shutdown.sh
|
||||||
|
echo '!!! -End of shutdown script- !!!' | logger -t shutdown.sh
|
||||||
|
sh $SHUTDOWN
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
_safe_shutdown () {
|
_safe_shutdown () {
|
||||||
|
_shutdown_script
|
||||||
add_omit_pids $(pidof connmand)
|
add_omit_pids $(pidof connmand)
|
||||||
add_omit_pids $(pidof dbus-daemon)
|
add_omit_pids $(pidof dbus-daemon)
|
||||||
killall5 -15 ${omit_pids[@]/#/-o }
|
killall5 -15 ${omit_pids[@]/#/-o }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user