Browse Source

Tobias Hintze <th@rocklinux.org>:


			
			
				rocklinux
			
			
		
Tobias Hintze 20 years ago
parent
commit
360eef43ff
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      package/mathieu/acpid/acpid.conf

+ 19
- 0
package/mathieu/acpid/acpid.conf

@ -20,5 +20,24 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
inst_template_config() {
mkdir -p /etc/acpi/events
mkdir -p /etc/acpi/actions
cat > $root/etc/acpi/events/power <<-EOF
event=button/power.*
action=/etc/acpi/actions/power.sh
EOF
cat > $root/etc/acpi/actions/power.sh <<-EOF
chvt 1
wall "power button pressed."
shutdown -h +1
EOF
chmod +x $root/etc/acpi/actions/power.sh
}
var_append CC_WRAPPER_APPEND ' ' '-O0'
hook_add postmake 3 "install_init $pkg $confdir/$pkg.init"
hook_add postmake 5 "inst_template_config"

Loading…
Cancel
Save