mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
20 lines
314 B
Bash
20 lines
314 B
Bash
|
#!/bin/sh
|
||
|
# Default acpi script that takes an entry for all actions
|
||
|
|
||
|
IFS=${IFS}/
|
||
|
set $@
|
||
|
|
||
|
case "$1" in
|
||
|
button)
|
||
|
case "$2" in
|
||
|
power) /sbin/init 0
|
||
|
;;
|
||
|
*) logger "ACPI action $2 is not defined"
|
||
|
;;
|
||
|
esac
|
||
|
;;
|
||
|
*)
|
||
|
logger "ACPI group $1 / action $2 is not defined"
|
||
|
;;
|
||
|
esac
|