wok view shutdown/stuff/shutdown @ rev 19931

Up brotli (0.6.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 27 09:31:57 2017 +0200 (2017-04-27)
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