plan9front/rc/bin/scram
mia soweli 2531938269 scram: → /rc/bin/scram
no need for scram to be a c program and duplicate the acpi shutdown code.
try writing power off to /dev/pmctl or fall back to the new -H flag
for aux/acpi.
2023-06-04 13:52:05 +00:00

5 lines
75 B
Bash
Executable file

#!/bin/rc
if(test -e /dev/pmctl)
echo power off >>/dev/pmctl
aux/acpi -H