From 567c309656a3833aca82563853a739139f9045a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 15 Aug 2017 13:02:05 +0200 Subject: Drop system configuration (applicable only to desktop) --- system/etc/acpi/handler.sh | 79 ---------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100755 system/etc/acpi/handler.sh (limited to 'system/etc/acpi') diff --git a/system/etc/acpi/handler.sh b/system/etc/acpi/handler.sh deleted file mode 100755 index 1cc28ff..0000000 --- a/system/etc/acpi/handler.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# Default acpi script that takes an entry for all actions - -case "$1" in - button/power) - case "$2" in - PBTN|PWRF) - logger 'PowerButton pressed' - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - button/sleep) - case "$2" in - SLPB|SBTN) - pm-suspend - logger 'SuspendButton pressed' - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - ac_adapter) - case "$2" in - AC|ACAD|ADP0) - case "$4" in - 00000000) - logger 'AC unpluged' - echo 1000 > /sys/class/backlight/intel_backlight/brightness - ;; - 00000001) - logger 'AC pluged' - echo 5273 > /sys/class/backlight/intel_backlight/brightness - ;; - esac - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - battery) - case "$2" in - BAT0) - case "$4" in - 00000000) - logger 'Battery online' - ;; - 00000001) - logger 'Battery offline' - ;; - esac - ;; - CPU0) - ;; - *) logger "ACPI action undefined: $2" ;; - esac - ;; - button/lid) - case "$3" in - close) - logger 'LID closed' - pm-suspend - ;; - open) - logger 'LID opened' - ;; - *) - logger "ACPI action undefined: $3" - ;; - esac - ;; - *) - logger "ACPI group/action undefined: $1 / $2" - ;; -esac -- cgit v1.2.3