K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / doc / acpid / examples /
server ip : 172.67.156.115

your ip : 108.162.241.149

H O M E


Filename/usr/share/doc/acpid/examples/default.sh
Size629
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:55
Last modified04-Apr-2014 02:41
Last accessed27-Apr-2025 09:55
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/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