summaryrefslogtreecommitdiffstats
path: root/src-wireless
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-09-14 05:43:36 +0200
committerJames Rayner <james@archlinux.org>2009-09-14 08:23:03 +0200
commit5a2279c70d1c6db3afab45f4ff6df420daa514e9 (patch)
tree734714abd9a366e87f38a810a5bee7dbe1c55e37 /src-wireless
parent55a840edd32ac45b35c4d7c604bcfe00e0ee7fbc (diff)
downloadnetctl-5a2279c70d1c6db3afab45f4ff6df420daa514e9.tar.gz
netctl-5a2279c70d1c6db3afab45f4ff6df420daa514e9.tar.xz
check for $IFACE_DIR/$INTERFACE before sourcing
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src-wireless')
-rw-r--r--src-wireless/netcfg-auto-wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-wireless/netcfg-auto-wireless b/src-wireless/netcfg-auto-wireless
index 892d5a8..7bb8dbb 100644
--- a/src-wireless/netcfg-auto-wireless
+++ b/src-wireless/netcfg-auto-wireless
@@ -11,7 +11,7 @@ wifi_auto()
{
local interface="$1"
report_try "Scanning for networks"
- source $IFACE_DIR/$interface
+ [[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface"
if [[ -n "$RFKILL" ]]; then
set_rf_state "$interface" up