diff options
author | James Rayner <james@archlinux.org> | 2010-01-30 23:36:14 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2010-01-30 23:36:14 +0100 |
commit | 359dc6d0679ecb00063099f8915cd1b43a127d0a (patch) | |
tree | d4c4b88a9b64dcd68c4c8e2652504954ce29caa1 /src/netcfg-menu | |
parent | 4852c63f0195475b569f0c4c90e3e81994292bc3 (diff) | |
download | netctl-359dc6d0679ecb00063099f8915cd1b43a127d0a.tar.gz netctl-359dc6d0679ecb00063099f8915cd1b43a127d0a.tar.xz |
Add early checks for optional dependencies
Diffstat (limited to 'src/netcfg-menu')
-rw-r--r-- | src/netcfg-menu | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/netcfg-menu b/src/netcfg-menu index 505a91b..872d904 100644 --- a/src/netcfg-menu +++ b/src/netcfg-menu @@ -2,6 +2,11 @@ . /usr/lib/network/network +if [[ ! -x /usr/bin/dialog ]]; then + echo "Please install 'dialog' to use netcfg-menu" + exit 1 +fi + # JP: we'll use $STATE_DIR/menu to record what profile is being connected in this way rm -f "$STATE_DIR/menu" |