aboutsummaryrefslogtreecommitdiffstats
path: root/net/netboot/files
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-04-18 01:56:26 +0800
committerarved <arved@FreeBSD.org>2003-04-18 01:56:26 +0800
commit9d29e9869e1e055a0172eaa2b5edafa44fabe58e (patch)
tree17492707cd774c4ddeb5c594b0605458c81bbea0 /net/netboot/files
parent892849d883703d4c2e9c3b27e600205b60284e1d (diff)
downloadfreebsd-ports-gnome-9d29e9869e1e055a0172eaa2b5edafa44fabe58e.tar.gz
freebsd-ports-gnome-9d29e9869e1e055a0172eaa2b5edafa44fabe58e.tar.zst
freebsd-ports-gnome-9d29e9869e1e055a0172eaa2b5edafa44fabe58e.zip
Netboot produces bootloaders for many NICs, similar to etherboot.
PR: 51075 Submitted by: David Yeske <dyeske@yahoo.com>
Diffstat (limited to 'net/netboot/files')
-rw-r--r--net/netboot/files/patch-misc::instdrv41
1 files changed, 41 insertions, 0 deletions
diff --git a/net/netboot/files/patch-misc::instdrv b/net/netboot/files/patch-misc::instdrv
new file mode 100644
index 000000000000..8e0d92a2c040
--- /dev/null
+++ b/net/netboot/files/patch-misc::instdrv
@@ -0,0 +1,41 @@
+--- misc/instdrv.orig Sun Dec 15 05:50:10 2002
++++ misc/instdrv Mon Mar 17 01:12:06 2003
+@@ -48,13 +48,8 @@
+ # Get name of driver subdirectory, name of driver file and check for MD5
+ # checksum file
+ #
+-MD5FILE="`echo "$DRVFILE" | sed 's,\.[^/]\+$,\.md5,'`"
+-SUBDIR="`echo "$ABSDRVFILE" | sed 's,^.*netdrvr/\([^/]\+\)/.*$,\1,'`"
++SUBDIR="`echo "$ABSDRVFILE" | sed 's,^.*netdrvr/\([^/].*\)/.*$,\1,'`"
+ DRVNAME="`echo "$ABSDRVFILE" | sed 's,^.*/\([^/]\+\.[^/]\+\)$,\1,'`"
+-if [ ! -r "$MD5FILE" ]; then
+- echo "$0: unable to read MD5 file $MD5FILE"
+- exit 1
+-fi
+
+
+ #
+@@ -68,12 +63,6 @@
+ echo $INSTPROG -d $INSTDIR/netdrvr
+ $INSTPROG -d $INSTDIR/netdrvr
+ fi
+-SUMFILE="$INSTDIR/netdrvr/MD5SUMS"
+-if [ ! -f $SUMFILE ]; then
+- echo "# MD5 checksum file" > $SUMFILE
+-fi
+-TMPFILE="${TEMP-/tmp}/MD5SUMS.$$"
+-trap "rm -f $TMPFILE" 0
+
+
+ #
+@@ -91,10 +80,5 @@
+ # Install MD5 checksum into checksum database. This involves to first
+ # remove the old entry from the file, and then to append the new entry
+ #
+-echo "Installing MD5 checksum into $SUMFILE"
+-MD5="`cat $MD5FILE | sed 's,^\(.\+[ ]\+[ *]\)[^ *].*$,\1,'`"
+-sed "/^.*$DRVNAME\$/d;\$a\\
+-$MD5$SUBDIR/$DRVNAME" $SUMFILE >$TMPFILE
+-$INSTPROG -m 644 $TMPFILE $SUMFILE
+ exit 0
+