From: madduck Date: Tue, 12 Dec 2006 11:57:05 +0000 (+0000) Subject: * Now also protects the poweroff command (closes: #401042). X-Git-Tag: 0.2.2 X-Git-Url: https://git.madduck.net/code/molly-guard.git/commitdiff_plain/99a389134d3257c43bf258007d5880a4885bdc77 * Now also protects the poweroff command (closes: #401042). --- diff --git a/shutdown b/shutdown index c740201..8beaa50 100755 --- a/shutdown +++ b/shutdown @@ -15,7 +15,7 @@ CMD="${0##*/}" EXEC="/sbin/$CMD" case "$CMD" in - halt|reboot|shutdown) + halt|reboot|shutdown|poweroff) if [ ! -f $EXEC ]; then echo "E: $ME: not a regular file: $EXEC" >&2 exit 4