wok annotate shutdown/stuff/shutdown @ rev 21314
5) lxpanel: up (0.10.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 18 17:46:06 2019 +0300 (2019-04-18) |
parents | 68bd2134ab54 |
children |
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 |
pascal@20892 | 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 |