From a2e81ec74e0247a307cbdc36b6b2697650ca10c7 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 19 Jun 2011 19:12:27 +0200 Subject: Replace iwgetid usage by wpa_cli. --- src/connections/wireless | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connections/wireless') diff --git a/src/connections/wireless b/src/connections/wireless index 9915165..ccc877c 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -124,7 +124,7 @@ wireless_down() { # Returns status of profile - is it still functional? wireless_status() { load_profile "$1" - if [[ "$(iwgetid -r)" -ne "$ESSID" ]]; then + if ! wpa_check_current_essid "$INTERFACE" "$ESSID"; then return 1 elif ! ip link show dev "$INTERFACE" | fgrep -q "state UP"; then return 1 -- cgit v1.2.3-24-g4f1b