wok view shutdown/stuff/shutdown @ rev 18601

Up tazlito(391)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 16 01:32:56 2015 +0200 (2015-11-16)
parents
children 02c70d036ea0
line source
1 #!/bin/sh
3 #
4 # This should do more, but this at least gets other scripts/tools the ability to
5 # use 'shutdown -r now' or similar.
6 #
8 if [ "x$1" == "x-r" ]; then
9 /sbin/reboot
10 else
11 /sbin/poweroff
12 fi