diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-bsp/eee-acpi-scripts/files | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-bsp/eee-acpi-scripts/files')
3 files changed, 90 insertions, 0 deletions
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs b/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs new file mode 100644 index 0000000000..fd099df0d8 --- /dev/null +++ b/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs | |||
@@ -0,0 +1,8 @@ | |||
1 | CheckPolicy() { | ||
2 | if pidof gnome-power-manager kpowersave > /dev/null || | ||
3 | (pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded kded loadedModules | grep -q klaptopdaemon) ; then | ||
4 | echo 0; | ||
5 | else | ||
6 | echo 1; | ||
7 | fi | ||
8 | } | ||
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch b/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch new file mode 100644 index 0000000000..403e5569b8 --- /dev/null +++ b/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | --- | ||
2 | actions/power.sh | 3 +++ | ||
3 | events/powerbtn | 2 ++ | ||
4 | 2 files changed, 5 insertions(+) | ||
5 | |||
6 | Upstream-Status: Inappropriate [enable feature] | ||
7 | |||
8 | Index: git/events/powerbtn | ||
9 | =================================================================== | ||
10 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
11 | +++ git/events/powerbtn 2008-10-08 17:43:35.000000000 +0200 | ||
12 | @@ -0,0 +1,2 @@ | ||
13 | +event=button/power PWRF | ||
14 | +action=/etc/acpi/actions/power.sh | ||
15 | Index: git/actions/power.sh | ||
16 | =================================================================== | ||
17 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
18 | +++ git/actions/power.sh 2008-10-08 17:45:26.000000000 +0200 | ||
19 | @@ -0,0 +1,3 @@ | ||
20 | +#!/bin/sh | ||
21 | + | ||
22 | +/sbin/shutdown -h now "Power button pressed" | ||
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch b/meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch new file mode 100644 index 0000000000..efb3dca7ac --- /dev/null +++ b/meta/recipes-bsp/eee-acpi-scripts/files/remove-doc-check.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | --- | ||
2 | actions/hotkey.sh | 3 --- | ||
3 | actions/suspend.sh | 3 --- | ||
4 | actions/vga-toggle.sh | 3 --- | ||
5 | actions/volume.sh | 3 --- | ||
6 | 4 files changed, 12 deletions(-) | ||
7 | |||
8 | Upstream-Status: Inappropriate [configuration] | ||
9 | |||
10 | Index: git/eeepc-acpi-scripts/volume.sh | ||
11 | =================================================================== | ||
12 | --- git.orig/eeepc-acpi-scripts/volume.sh 2011-11-29 19:21:55.000000000 +0800 | ||
13 | +++ git/eeepc-acpi-scripts/volume.sh 2011-11-29 19:41:36.000000000 +0800 | ||
14 | @@ -3,12 +3,10 @@ | ||
15 | [ -d /sys/devices/platform/eeepc ] || [ -d /sys/devices/platform/eeepc-wmi ] || exit 0 | ||
16 | # Volume controls | ||
17 | |||
18 | -# do nothing if package is removed | ||
19 | PKG=eeepc-acpi-scripts | ||
20 | PKG_DIR=/usr/share/acpi-support/$PKG | ||
21 | FUNC_LIB=$PKG_DIR/lib/functions.sh | ||
22 | DEFAULT=/etc/default/$PKG | ||
23 | -[ -e "$FUNC_LIB" ] || exit 0 | ||
24 | |||
25 | . $FUNC_LIB | ||
26 | . $PKG_DIR/lib/sound.sh | ||
27 | Index: git/eeepc-acpi-scripts/hotkey.sh | ||
28 | =================================================================== | ||
29 | --- git.orig/eeepc-acpi-scripts/hotkey.sh 2011-11-29 19:21:55.000000000 +0800 | ||
30 | +++ git/eeepc-acpi-scripts/hotkey.sh 2011-11-29 19:39:51.000000000 +0800 | ||
31 | @@ -1,12 +1,10 @@ | ||
32 | #!/bin/sh | ||
33 | |||
34 | [ -d /sys/devices/platform/eeepc ] || [ -d /sys/devices/platform/eeepc-wmi ] || exit 0 | ||
35 | -# do nothing if package is removed | ||
36 | PKG=eeepc-acpi-scripts | ||
37 | PKG_DIR=/usr/share/acpi-support/$PKG | ||
38 | FUNC_LIB=$PKG_DIR/lib/functions.sh | ||
39 | DEFAULT=/etc/default/$PKG | ||
40 | -[ -e "$FUNC_LIB" ] || exit 0 | ||
41 | |||
42 | case $(runlevel) in | ||
43 | *0|*6) | ||
44 | Index: git/eeepc-acpi-scripts/vga-toggle.sh | ||
45 | =================================================================== | ||
46 | --- git.orig/eeepc-acpi-scripts/vga-toggle.sh 2011-11-29 19:21:55.000000000 +0800 | ||
47 | +++ git/eeepc-acpi-scripts/vga-toggle.sh 2011-11-29 19:40:24.000000000 +0800 | ||
48 | @@ -1,12 +1,10 @@ | ||
49 | #!/bin/sh | ||
50 | |||
51 | [ -d /sys/devices/platform/eeepc ] || [ -d /sys/devices/platform/eeepc-wmi ] || exit 0 | ||
52 | -# do nothing if package is removed | ||
53 | PKG=eeepc-acpi-scripts | ||
54 | PKG_DIR=/usr/share/acpi-support/$PKG | ||
55 | FUNC_LIB=$PKG_DIR/lib/functions.sh | ||
56 | DEFAULT=/etc/default/$PKG | ||
57 | -[ -e "$FUNC_LIB" ] || exit 0 | ||
58 | |||
59 | if [ -e "$DEFAULT" ]; then . "$DEFAULT"; fi | ||
60 | . $FUNC_LIB | ||