#!/bin/sh # Default acpi script that takes an entry for all actions set $* # Take care about the way events are reported ev_type=`echo "$1" | cut -d/ -f1` if [ "$ev_type" = "$1" ]; then event="$2"; else event=`echo "$1" | cut -d/ -f2` fi case "$ev_type" in button) case "$event" in power) logger "acpid: received a shutdown request" /sbin/init 0 break ;; *) logger "acpid: action $2 is not defined" ;; esac ;; *) logger "ACPI group $1 / action $2 is not defined" ;; esac
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ac | File | 308 B | 0644 |
|
ac.sh | File | 1.12 KB | 0644 |
|
default | File | 630 B | 0644 |
|
default.sh | File | 629 B | 0644 |
|
powerbtn | File | 423 B | 0644 |
|
powerbtn.sh | File | 1.96 KB | 0644 |
|