diff options
author | James Rayner <james@archlinux.org> | 2009-09-22 15:04:15 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-22 15:04:15 +0200 |
commit | 978802d97fbcea7651597e4242be41d618100832 (patch) | |
tree | 0d3cf50e099bea65eede503ed0b852e65ffa5a28 /src/network | |
parent | 1c6760ebd6b7d6630fbab75885fac5dbea90c78b (diff) | |
download | netctl-978802d97fbcea7651597e4242be41d618100832.tar.gz netctl-978802d97fbcea7651597e4242be41d618100832.tar.xz |
Rework wireless to use wpa_supplicant more, add CONFIGSECTION support
CONFIGSECTION will be useful later on for integration with autowifi.
It'll allow WPA configurations to be stored _in_ the profile, rather
than separately.
Experimentally, WEP/none support has been migrated to wpa_supplicant.
Support for string keys has not yet been merged.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network b/src/network index be814d4..5c22a7b 100644 --- a/src/network +++ b/src/network @@ -333,6 +333,16 @@ set_iface() { fi } + +is_interface() { + if [[ ! -e "/sys/class/net/$INTERFACE" ]]; then + if ! echo "$INTERFACE" | fgrep -q ":"; then + return 1 + fi + fi + return 0 +} + bring_interface() { INTERFACE="$2" |