[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, rfkill, updated. 1.1.5-18-g1c9e148
Darren Salt
linux at youmustbejoking.demon.co.uk
Mon Jan 4 15:42:23 UTC 2010
The following commit has been merged in the rfkill branch:
commit 1c9e1486a9cf347c34ec6e049df9fabb6f4afc22
Author: Darren Salt <linux at youmustbejoking.demon.co.uk>
Date: Mon Jan 4 15:30:57 2010 +0000
rfkill: fix state detection and yet more mis-hardwiring.
diff --git a/functions.sh b/functions.sh
index 0c30a67..b802c2f 100644
--- a/functions.sh
+++ b/functions.sh
@@ -19,7 +19,7 @@ if have_dev_rfkill; then
get_rfkill()
{
# simple yes/no, so...
- expr length "$(rfkill list | sed -e '/bluetooth:/! d; N; s/.*://')" - 2
+ expr 4 - length "$(rfkill list | sed -e "/$1:/! d; N; s/.*://")"
}
set_rfkill()
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list