summaryrefslogtreecommitdiffstats
path: root/wpa_actiond/net-auto-wireless
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2010-01-30 23:36:14 +0100
committerJames Rayner <james@archlinux.org>2010-01-30 23:36:14 +0100
commit359dc6d0679ecb00063099f8915cd1b43a127d0a (patch)
treed4c4b88a9b64dcd68c4c8e2652504954ce29caa1 /wpa_actiond/net-auto-wireless
parent4852c63f0195475b569f0c4c90e3e81994292bc3 (diff)
downloadnetctl-359dc6d0679ecb00063099f8915cd1b43a127d0a.tar.gz
netctl-359dc6d0679ecb00063099f8915cd1b43a127d0a.tar.xz
Add early checks for optional dependencies
Diffstat (limited to 'wpa_actiond/net-auto-wireless')
-rwxr-xr-xwpa_actiond/net-auto-wireless6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_actiond/net-auto-wireless b/wpa_actiond/net-auto-wireless
index 4f4c754..6dabde5 100755
--- a/wpa_actiond/net-auto-wireless
+++ b/wpa_actiond/net-auto-wireless
@@ -2,6 +2,12 @@
. /etc/rc.conf
. /etc/rc.d/functions
+
+if [[ ! -x /usr/sbin/wpa_actiond ]]; then
+ echo "Please install 'wpa_actiond' to use net-auto-wireless"
+ exit 1
+fi
+
if [ -z "${WIRELESS_INTERFACE}" ]; then
echo "No interface name set. Set it by adding WIRELESS_INTERFACE=\"your_interface\" to rc.conf"
exit 1