From b2c6bcce3be25a9afa2e5390015e383eb46d90b3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 29 Jan 2001 23:16:58 +0000 Subject: do something less surprising when called with arguments (#18216) --- rc.d/init.d/halt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rc.d') diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 06721332..099e58dd 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -39,6 +39,16 @@ case "$0" in exit 1 ;; esac +if [ -n "$1" ]; then + case "$1" in + *start) + ;; + *) + echo $"Usage: (halt|reboot) {start}" + exit 1 + ;; + esac +fi # Kill all processes. [ "${BASH+bash}" = bash ] && enable kill -- cgit v1.2.1