wok annotate shutdown/stuff/shutdown @ rev 18428
shutdown: add simple shutdown wrapper script for other tool compatibility
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Mon Sep 21 13:17:35 2015 +0000 (2015-09-21) |
parents | |
children | 02c70d036ea0 |
rev | line source |
---|---|
nneul@18428 | 1 #!/bin/sh |
nneul@18428 | 2 |
nneul@18428 | 3 # |
nneul@18428 | 4 # This should do more, but this at least gets other scripts/tools the ability to |
nneul@18428 | 5 # use 'shutdown -r now' or similar. |
nneul@18428 | 6 # |
nneul@18428 | 7 |
nneul@18428 | 8 if [ "x$1" == "x-r" ]; then |
nneul@18428 | 9 /sbin/reboot |
nneul@18428 | 10 else |
nneul@18428 | 11 /sbin/poweroff |
nneul@18428 | 12 fi |