[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 6742528e5492fed9adff8cb50935b08123ee9405
Damyan Ivanov
dmn at debian.org
Sun Sep 7 11:25:54 UTC 2008
The following commit has been merged in the master branch:
commit c6a0b1cfa7407734dca9af042f285ccc3f2442c5
Author: Damyan Ivanov <dmn at debian.org>
Date: Sun Sep 7 12:31:13 2008 +0300
functions.sh: support old control node path for bluetooth/camera
in case someone still uses eeepc-acpi kernel module instead of
laptop-eeepc
diff --git a/TODO b/TODO
index cfe1e6a..b6fabce 100644
--- a/TODO
+++ b/TODO
@@ -10,9 +10,6 @@
perhaps even the choice if two- or three-state dsplay configuration can
be configured.
-* support control node locations for bluetooth and camera for pre-2.6.26
- kernels
-
* move bluetooth/camera on/off parts into separate scripts under
/etc/acpi/actions, similarly to wireless.sh
diff --git a/functions.sh b/functions.sh
index d2ad780..ba666f9 100644
--- a/functions.sh
+++ b/functions.sh
@@ -37,6 +37,7 @@ detect_x_display()
}
BT_CTL=/sys/devices/platform/eeepc/bluetooth
+[ -e $BT_CTL ] || BT_CTL=/proc/acpi/asus/bluetooth # pre-2.6.26
# check if bluetooth is switched on and return success (exit code 0 if it is
# return failure (exit code 1) if it is not
#
@@ -79,6 +80,7 @@ toggle_bluetooth()
}
CAM_CTL=/sys/devices/platform/eeepc/camera
+[ -e $CAM_CTL ] || CAM_CTL=/proc/acpi/asus/camera #pre-2.6.26
# check if camera is enabled and return success (exit code 0 if it is
# return failure (exit code 1) if it is not
#
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-devel
mailing list