wok view shutdown/stuff/shutdown @ rev 20009

Add: description.txt and links revision.
author Leonardo Laporte <hackdorte@yandex.com>
date Thu Aug 03 05:22:36 2017 -0300 (2017-08-03)
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