about summary refs log tree commit diff
path: root/shutdown
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-03-31 15:24:43 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2015-03-31 16:42:55 +0200
commit6e03320cd69e3b9bb7647d3113d2684d3137b4cc (patch)
tree2b0e300795ecf3ff12f14df6db7c30466b33c16a /shutdown
parent33589dc9db67d059a1fcd8135ab793fe08b87ad0 (diff)
downloadrunit-void-6e03320cd69e3b9bb7647d3113d2684d3137b4cc.tar.gz
runit-void-6e03320cd69e3b9bb7647d3113d2684d3137b4cc.tar.xz
runit-void-6e03320cd69e3b9bb7647d3113d2684d3137b4cc.zip
shutdown: simplify redirection to /dev/stderr
Diffstat (limited to 'shutdown')
-rwxr-xr-xshutdown6
1 files changed, 3 insertions, 3 deletions
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