From 5ac9b45fe392a70c7325aac65ff02f572cdf1cff Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 19 Jun 2011 21:46:47 +0200 Subject: Add /etc/conf.d/netcfg for net-auto-wireless configuration. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Oudompheng --- wpa_actiond/net-auto-wireless | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'wpa_actiond') 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 -- cgit v1.2.3-24-g4f1b