[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 34cd0cbeab516682d1d1744c6424ea3760efc992
Ben Armstrong
synrg at debian.org
Tue Feb 3 23:45:52 UTC 2009
The following commit has been merged in the master branch:
commit 34cd0cbeab516682d1d1744c6424ea3760efc992
Author: Ben Armstrong <synrg at debian.org>
Date: Tue Feb 3 19:45:41 2009 -0400
Fix detection of rfkill on systems that don't have it
diff --git a/debian/changelog b/debian/changelog
index 0ad9982..a1e1efd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,8 +16,9 @@ eeepc-acpi-scripts (1.0.12) UNRELEASED; urgency=low
[ Ben Armstrong ]
* Support ath5k wifi toggling and default to using it if ath_pci is not present.
+ * Fix detection of rfkill on systems that don't have it.
- -- Ben Armstrong <synrg at sanctuary.nslug.ns.ca> Tue, 03 Feb 2009 17:14:46 -0400
+ -- Ben Armstrong <synrg at sanctuary.nslug.ns.ca> Tue, 03 Feb 2009 19:44:50 -0400
eeepc-acpi-scripts (1.0.11) unstable; urgency=low
diff --git a/functions.sh b/functions.sh
index 815f7d0..966e37f 100644
--- a/functions.sh
+++ b/functions.sh
@@ -24,7 +24,7 @@ detect_rfkill()
{
local _rfkill
for _rfkill in /sys/class/rfkill/*; do
- if [ "$(cat "$_rfkill/name")" = "$1" ]; then
+ if [ -f "$_rfkill/name" ] && [ "$(cat "$_rfkill/name")" = "$1" ]; then
echo "Detected $1 as rfkill $_rfkill" >&2
RFKILL="$_rfkill/state"
return
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list