summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnet-setup8
1 files changed, 7 insertions, 1 deletions
diff --git a/net-setup b/net-setup
index efbbe90..af673f2 100755
--- a/net-setup
+++ b/net-setup
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/livecd-tools/net-setup,v 1.17 2005/06/09 15:31:23 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/livecd-tools/net-setup,v 1.18 2006/05/30 19:50:59 wolf31o2 Exp $
if [ -f /sbin/livecd-functions.sh ]
then
@@ -11,6 +11,12 @@ else
exit 1
fi
+if [ ! -x $(which dialog) ]
+then
+ echo "ERROR: The dialog utility is required for net-setup. Exiting!"
+ exit 1
+fi
+
livecd_check_root || exit 1
if [ -z "${1}" ]