aboutsummaryrefslogtreecommitdiff
path: root/release/i386/dokern.sh
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-11-11 08:46:54 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-11-11 08:46:54 +0000
commitaeb41b899d2674c1a5570fc1716c853e147ab24d (patch)
tree67e61ba3b2607df8baad7745169f01f407c29f53 /release/i386/dokern.sh
parent1e216ab5905362d300b22da9268a3226f0f540a8 (diff)
downloadsrc-aeb41b899d2674c1a5570fc1716c853e147ab24d.tar.gz
src-aeb41b899d2674c1a5570fc1716c853e147ab24d.zip
We've overflowed boot.flp again. Go to a boot.flp which contains
a bit less legacy hardware support, that all still remaining a supported option with kern.flp (and a two-floppy install). This will be documented in the release notes, I promise.
Notes
Notes: svn path=/head/; revision=41084
Diffstat (limited to 'release/i386/dokern.sh')
-rwxr-xr-xrelease/i386/dokern.sh49
1 files changed, 49 insertions, 0 deletions
diff --git a/release/i386/dokern.sh b/release/i386/dokern.sh
new file mode 100755
index 000000000000..251d6283667b
--- /dev/null
+++ b/release/i386/dokern.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+# From the kernel config file on stdin (usually GENERIC), pare out items as
+# determined by whether or not the kernel is being prepared to contain
+# an MFS ($1 = YES) or will have the floppy image all to itself ($1 = NO).
+
+if [ $# -lt 1 ]; then
+ echo "usage: $0 YES|NO
+ exit 1
+fi
+
+MFS=$1
+
+if [ "$MFS" = "YES" ]; then
+ sed -e '/pty/d' \
+ -e '/eisa/d' \
+ -e '/wfd0/d' \
+ -e '/aha0/d' \
+ -e '/ahb0/d' \
+ -e '/mcd0/d' \
+ -e '/matcd0/d' \
+ -e '/scd0/d' \
+ -e '/wt0/d' \
+ -e '/pass0/d' \
+ -e '/apm0/d' \
+ -e '/ft0/d' \
+ -e '/ppp/d' \
+ -e '/gzip/d' \
+ -e '/PROCFS/d' \
+ -e '/SYSVSHM/d' \
+ -e '/KTRACE/d' \
+ -e '/MATH_EMULATE/d' \
+ -e 's/GENERIC/BOOTMFS/g' \
+ -e '/maxusers/s/32/4/'
+elif [ "$MFS" = "NO" ]; then # can be much bigger
+ sed -e '/pty/d' \
+ -e '/pass0/d' \
+ -e '/apm0/d' \
+ -e '/ppp/d' \
+ -e '/gzip/d' \
+ -e '/PROCFS/d' \
+ -e '/KTRACE/d' \
+ -e '/MATH_EMULATE/d' \
+ -e 's/GENERIC/BOOTMFS/g' \
+fi
+echo "options NFS_NOSERVER"
+echo 'options "MAXCONS=4"'
+echo "options SCSI_NO_OP_STRINGS"
+echo "options SCSI_NO_SENSE_STRINGS"