wok annotate shutdown/stuff/shutdown @ rev 25074
Add python-ipaddress
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 13 19:39:39 2022 +0000 (2022-06-13) |
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 |