diff --git a/skel-root/general/files-etc/init.d/rc b/skel-root/general/files-etc/init.d/rc index 0bdb00cc..3f9d23d0 100644 --- a/skel-root/general/files-etc/init.d/rc +++ b/skel-root/general/files-etc/init.d/rc @@ -174,6 +174,7 @@ startup() { fi case "$runlevel" in 0|6) + # Runlevels 0 and 6 are always stop runlevels startup $i stop ;; *) diff --git a/skel-root/general/scripts/custom-poweroff.init b/skel-root/general/scripts/custom-poweroff.init index 9f585e07..59e458bc 100644 --- a/skel-root/general/scripts/custom-poweroff.init +++ b/skel-root/general/scripts/custom-poweroff.init @@ -3,7 +3,7 @@ . /etc/init.d/globals case $1 in - start) + stop) TIMER="/tmp/.timer" test -e $TIMER || exit 0 @@ -15,6 +15,6 @@ case $1 in fi ;; *) - echo "[$BASENAME] Usage: $0 {start}" + echo "[$BASENAME] Usage: $0 {stop}" ;; esac