From 99a389134d3257c43bf258007d5880a4885bdc77 Mon Sep 17 00:00:00 2001 From: madduck Date: Tue, 12 Dec 2006 11:57:05 +0000 Subject: [PATCH 1/1] * Now also protects the poweroff command (closes: #401042). --- shutdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5