From 8bef2e0c68bbe80e20ac5c9e9b8a4125769c7fe9 Mon Sep 17 00:00:00 2001 From: Sebastian Wicki Date: Thu, 18 Feb 2010 16:07:02 +0100 Subject: [PATCH] Fix invalid parsed output of get_rf_state() --- src/connections/wireless | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/connections/wireless b/src/connections/wireless index 5c9091a..26de3bc 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -9,7 +9,7 @@ enable_rf() { # Enable rfkill if necessary, or fail if it is hardware if [[ -n "$RFKILL" ]]; then local state=$(get_rf_state "$INTERFACE") || return 1 - if [[ "$state" != "up" ]]; then + if [[ "$state" != "enabled" ]]; then if [[ "$RFKILL" == "soft" ]]; then set_rf_state "$INTERFACE" up sleep 1 -- 1.6.6.1