summaryrefslogtreecommitdiffstats
path: root/release/alpha/dokern.sh
blob: 251d6283667b51370b2b96f1d754fae834cdec6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"
OpenPOWER on IntegriCloud