summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-25 15:06:32 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-25 15:06:32 +0000
commit54ecd6f2b1d6ad3543d6d208e0967cf5556c1a21 (patch)
tree02e8eda95a6b9b87ace509d89c8f6984b49097bf
parent0ddde582e9b745655dd8642e86c763368040fb9c (diff)
downloaddrakx-backup-do-not-use-54ecd6f2b1d6ad3543d6d208e0967cf5556c1a21.tar
drakx-backup-do-not-use-54ecd6f2b1d6ad3543d6d208e0967cf5556c1a21.tar.gz
drakx-backup-do-not-use-54ecd6f2b1d6ad3543d6d208e0967cf5556c1a21.tar.bz2
drakx-backup-do-not-use-54ecd6f2b1d6ad3543d6d208e0967cf5556c1a21.tar.xz
drakx-backup-do-not-use-54ecd6f2b1d6ad3543d6d208e0967cf5556c1a21.zip
warn if driver not available, print available drivers
-rwxr-xr-xtools/i386/netboot/make_boot_network7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/i386/netboot/make_boot_network b/tools/i386/netboot/make_boot_network
index a0b0302a4..b02e6657c 100755
--- a/tools/i386/netboot/make_boot_network
+++ b/tools/i386/netboot/make_boot_network
@@ -3,6 +3,13 @@
type=$1
[ -z "$type" ] && { echo "usage: $0 <network card type> (eg: 3c90x)" ; exit 1; }
+if [ ! -d "$type" ]; then
+ echo "$type: no such network driver"
+ echo "available drivers are:"
+ echo `find -not -name CVS -type d -maxdepth 1 -printf '%P\n'`
+ exit 1;
+fi
+
[ -e menu.lst ] || { echo "missing file menu.lst, create one based on menu.lst.example"; exit 1; }
ln -sf ${type}/stage1 stage1