virtual-appliance/scripts/acpi.start

11 lines
186 B
Bash
Executable File

#!/bin/sh
script="/etc/acpi/PWRF/00000080"
if [ ! -f $script ] ; then
mkdir -p `dirname $script`
echo '#!/bin/sh\n/sbin/halt\n' > $script
chmod +x $script
fi
busybox acpid