summaryrefslogtreecommitdiffstats
path: root/wpa_actiond/net-auto-wireless
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_actiond/net-auto-wireless')
-rwxr-xr-xwpa_actiond/net-auto-wireless6
1 files changed, 4 insertions, 2 deletions
diff --git a/wpa_actiond/net-auto-wireless b/wpa_actiond/net-auto-wireless
index 5e93a8f..d6a3c44 100755
--- a/wpa_actiond/net-auto-wireless
+++ b/wpa_actiond/net-auto-wireless
@@ -3,14 +3,16 @@
. /etc/rc.conf
. /etc/rc.d/functions
. /usr/lib/network/globals
+. /etc/conf.d/netcfg
if [[ ! -x /usr/sbin/wpa_actiond ]]; then
echo "Please install 'wpa_actiond' to use net-auto-wireless"
exit 1
-fi
+fi
if [ -z "${WIRELESS_INTERFACE}" ]; then
- echo "No interface name set. Set it by adding WIRELESS_INTERFACE=\"your_interface\" to rc.conf"
+ echo "No interface name set. Add to /etc/conf.d/netcfg a line"
+ echo " WIRELESS_INTERFACE=\"your_interface\""
exit 1
fi