summaryrefslogtreecommitdiff
path: root/rc/bin
diff options
context:
space:
mode:
Diffstat (limited to 'rc/bin')
-rwxr-xr-xrc/bin/fshalt11
1 files changed, 8 insertions, 3 deletions
diff --git a/rc/bin/fshalt b/rc/bin/fshalt
index c6bf8c854..2847e6a6c 100755
--- a/rc/bin/fshalt
+++ b/rc/bin/fshalt
@@ -38,9 +38,12 @@ for (i in $k){
# for scram, don't scram other systems
bind -b '#P' /dev
-if (test -e '#P'/apm)
- if (! ~ $reboot yes)
+if(! ~ $reboot yes){
+ if (test -e '#P'/apm)
scram=yes
+ if (test -e '#P'/acpitbls -a -e '#P'/iow)
+ scram=yes
+}
# halting (binaries we run can't be on the fs we're halting)
ramfs
@@ -85,8 +88,10 @@ fn x {
echo rebooting...
echo reboot >'#c/reboot'
}
- if (~ $scram yes)
+ if (~ $scram yes){
scram
+ echo 'It''s now safe to turn off your computer'
+ }
}
x