summaryrefslogtreecommitdiff
path: root/rc/bin
diff options
context:
space:
mode:
authorSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2022-09-07 19:49:38 +0000
committerSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2022-09-07 19:49:38 +0000
commit25ad7eef2cbe2b3431111f241d85658f57034df6 (patch)
treeacaa7bc6159d307cd848b68daeda1b17b6fa4dfc /rc/bin
parent79293e820d4bf25efd685fb43be78d52b7a093b1 (diff)
fshalt: optionally use /dev/pmctl to shut down the machine
Diffstat (limited to 'rc/bin')
-rwxr-xr-xrc/bin/fshalt3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc/bin/fshalt b/rc/bin/fshalt
index 53f3b7ca4..7b669aae4 100755
--- a/rc/bin/fshalt
+++ b/rc/bin/fshalt
@@ -80,6 +80,9 @@ fn x {
echo rebooting...
echo reboot $bootf >'#c/reboot'
}
+ if not if (test -e /dev/pmctl) {
+ echo power off >>/dev/pmctl
+ }
if (~ $scram yes){
scram
echo 'It''s now safe to turn off your computer'