wok annotate shutdown/stuff/shutdown @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
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