From 978802d97fbcea7651597e4242be41d618100832 Mon Sep 17 00:00:00 2001 From: James Rayner Date: Tue, 22 Sep 2009 23:04:15 +1000 Subject: 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. --- src/network | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/network') 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" -- cgit v1.2.3-24-g4f1b