From 6e03320cd69e3b9bb7647d3113d2684d3137b4cc Mon Sep 17 00:00:00 2001 From: Sören Tempel Date: Tue, 31 Mar 2015 15:24:43 +0200 Subject: shutdown: simplify redirection to /dev/stderr --- shutdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shutdown') diff --git a/shutdown b/shutdown index 1fa8a5f..7fe26ae 100755 --- a/shutdown +++ b/shutdown @@ -6,14 +6,14 @@ single() { } usage() { - echo "Usage: shutdown [-fF] [-kchPr] time [warning message]" >/dev/stderr; exit 1 + echo "Usage: shutdown [-fF] [-kchPr] time [warning message]" >&2; exit 1 } action=single while getopts akrhPHfFnct: opt; do case "$opt" in - a|n|H) echo "-$opt is not implemented" >/dev/stderr; exit 1;; + a|n|H) echo "-$opt is not implemented" >&2; exit 1;; t) ;; f) touch /fastboot;; F) touch /forcefsck;; @@ -46,7 +46,7 @@ echo $$ >/run/runit/shutdown.pid case "$time" in now) time=0;; +*) time=${time#+};; - *:*) echo "absolute time is not implemented" >/dev/stderr; exit 1;; + *:*) echo "absolute time is not implemented" >&2; exit 1;; *) echo "invalid time"; exit 1;; esac -- cgit 1.4.1