summaryrefslogtreecommitdiffstats
path: root/ifplugd
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 /ifplugd
parent4852c63f0195475b569f0c4c90e3e81994292bc3 (diff)
downloadnetctl-359dc6d0679ecb00063099f8915cd1b43a127d0a.tar.gz
netctl-359dc6d0679ecb00063099f8915cd1b43a127d0a.tar.xz
Add early checks for optional dependencies
Diffstat (limited to 'ifplugd')
-rwxr-xr-xifplugd/net-auto-wired5
1 files changed, 5 insertions, 0 deletions
diff --git a/ifplugd/net-auto-wired b/ifplugd/net-auto-wired
index 12d1201..9af8505 100755
--- a/ifplugd/net-auto-wired
+++ b/ifplugd/net-auto-wired
@@ -3,6 +3,11 @@
. /etc/rc.conf
. /etc/rc.d/functions
+if [[ ! -x /usr/sbin/ifplugd ]]; then
+ echo "Please install 'ifplugd' to use net-auto-wired"
+ exit 1
+fi
+
CFG=/etc/ifplugd/ifplugd.conf
ACTION=/etc/ifplugd/netcfg.action
PIDFILE=/var/run/ifplugd.$WIRED_INTERFACE.pid