1998-11-11 08:46:54 +00:00
|
|
|
#!/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
|
1998-11-12 20:40:45 +00:00
|
|
|
# an MFS ($1 = YES) or will have the floppy image all to itself ($1 = NO or
|
|
|
|
# not specified).
|
1998-11-11 08:46:54 +00:00
|
|
|
|
|
|
|
if [ $# -lt 1 ]; then
|
1998-11-12 20:40:45 +00:00
|
|
|
MFS=NO
|
|
|
|
else
|
|
|
|
MFS=$1
|
1998-11-11 08:46:54 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$MFS" = "YES" ]; then
|
|
|
|
sed -e '/pty/d' \
|
1999-01-26 15:14:11 +00:00
|
|
|
-e '/acd0/d' \
|
|
|
|
-e '/cd0/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/mcd0/d' \
|
|
|
|
-e '/matcd0/d' \
|
|
|
|
-e '/scd0/d' \
|
1999-01-26 15:14:11 +00:00
|
|
|
-e '/ft0/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/wt0/d' \
|
1999-01-26 15:14:11 +00:00
|
|
|
-e '/wfd0/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/pass0/d' \
|
1999-01-28 06:27:41 +00:00
|
|
|
-e '/pnp0/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/apm0/d' \
|
|
|
|
-e '/ppp/d' \
|
1999-01-26 15:14:11 +00:00
|
|
|
-e '/eisa0/d' \
|
|
|
|
-e '/aha0/d' \
|
|
|
|
-e '/ahb0/d' \
|
|
|
|
-e '/bt0/d' \
|
|
|
|
-e '/fd1/d' \
|
|
|
|
-e '/splash/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/gzip/d' \
|
1998-12-06 21:58:50 +00:00
|
|
|
-e '/NFS/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/PROCFS/d' \
|
1999-01-26 15:14:11 +00:00
|
|
|
-e '/MSDOSFS/d' \
|
|
|
|
-e '/CD9660/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/SYSVSHM/d' \
|
|
|
|
-e '/KTRACE/d' \
|
|
|
|
-e '/MATH_EMULATE/d' \
|
|
|
|
-e 's/GENERIC/BOOTMFS/g' \
|
|
|
|
-e '/maxusers/s/32/4/'
|
1998-11-12 20:40:45 +00:00
|
|
|
else
|
1998-11-11 08:46:54 +00:00
|
|
|
sed -e '/pty/d' \
|
|
|
|
-e '/pass0/d' \
|
|
|
|
-e '/apm0/d' \
|
|
|
|
-e '/ppp/d' \
|
|
|
|
-e '/gzip/d' \
|
1999-01-26 15:14:11 +00:00
|
|
|
-e '/splash/d' \
|
1998-11-11 08:46:54 +00:00
|
|
|
-e '/PROCFS/d' \
|
|
|
|
-e '/KTRACE/d' \
|
1998-11-12 20:12:52 +00:00
|
|
|
-e 's/GENERIC/BOOTMFS/g'
|
1998-11-11 08:46:54 +00:00
|
|
|
fi
|
|
|
|
echo "options NFS_NOSERVER"
|
|
|
|
echo "options SCSI_NO_OP_STRINGS"
|
|
|
|
echo "options SCSI_NO_SENSE_STRINGS"
|