diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-30 19:50:59 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-30 19:50:59 +0000 |
commit | bbbfc96783b21e30a4214ac303a5ac7d059aa23e (patch) | |
tree | 82d76f88a8a991a292c6b45f74b9910ef6420cb6 /net-setup | |
parent | Fixed x-setup being called when we used either nox or nodetect. Fixed sound ... (diff) | |
download | livecd-tools-bbbfc96783b21e30a4214ac303a5ac7d059aa23e.tar.gz livecd-tools-bbbfc96783b21e30a4214ac303a5ac7d059aa23e.tar.bz2 livecd-tools-bbbfc96783b21e30a4214ac303a5ac7d059aa23e.zip |
Check for presence of dialog before running. Suggestion made by Markus Saarinen <heroine@saunalahti.fi> in bug #134486.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/livecd-tools/trunk@103 7bf51bff-881f-0410-a643-fba68b97345e
Diffstat (limited to 'net-setup')
-rwxr-xr-x | net-setup | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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}" ] |