From 54ecd6f2b1d6ad3543d6d208e0967cf5556c1a21 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 25 Aug 2004 15:06:32 +0000 Subject: warn if driver not available, print available drivers --- tools/i386/netboot/make_boot_network | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') 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 (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 -- cgit v1.2.1