diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 19:12:27 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 19:12:27 +0200 |
commit | a2e81ec74e0247a307cbdc36b6b2697650ca10c7 (patch) | |
tree | 2ecd395746b90dc3d15e04df27c41a30492af49b /src/connections | |
parent | b425d7737659bdc0758b2b759bf83a3ea34ba9ae (diff) | |
download | netctl-a2e81ec74e0247a307cbdc36b6b2697650ca10c7.tar.gz netctl-a2e81ec74e0247a307cbdc36b6b2697650ca10c7.tar.xz |
Replace iwgetid usage by wpa_cli.
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/wireless | 2 |
1 files changed, 1 insertions, 1 deletions
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 |