From 359dc6d0679ecb00063099f8915cd1b43a127d0a Mon Sep 17 00:00:00 2001 From: James Rayner Date: Sun, 31 Jan 2010 09:36:14 +1100 Subject: Add early checks for optional dependencies --- wpa_actiond/net-auto-wireless | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wpa_actiond') 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 -- cgit v1.2.3-24-g4f1b