]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - release/i386/dokern.sh
Move mfs-related files to a different subtree
[FreeBSD/FreeBSD.git] / release / i386 / dokern.sh
1 #!/bin/sh
2
3 ARCH="`uname -m`"
4
5 # First check for the standard x86 PC class.
6 if [ "${ARCH}" = "i386" ]; then
7
8 sed     -e '/pty/d' \
9         -e '/pass/d' \
10         -e '/apm0/d' \
11         -e '/ppp/d' \
12         -e '/gzip/d' \
13         -e '/splash/d' \
14         -e '/IPv6/d' \
15         -e '/PROCFS/d' \
16         -e '/KTRACE/d' \
17         -e '/SYSVMSG/d' \
18         -e '/maxusers/d' \
19         -e 's/GENERIC/BOOTMFS/g'
20
21 echo "options  NETGRAPH"
22 echo "options  NETGRAPH_PPPOE"
23 echo "options  NETGRAPH_SOCKET"
24
25 # Otherwise maybe it's an alpha, and it has big binaries.
26 elif [ "${ARCH}" = "alpha" ]; then
27
28 sed     -e '/pty/d' \
29         -e '/pass/d' \
30         -e '/apm0/d' \
31         -e '/ppp/d' \
32         -e '/gzip/d' \
33         -e '/splash/d' \
34         -e '/IPv6/d' \
35         -e '/PROCFS/d' \
36         -e '/KTRACE/d' \
37         -e '/SYSV/d' \
38         -e '/maxusers/d' \
39         -e 's/GENERIC/BOOTMFS/g'
40 fi
41
42 # reset maxusers to something lower
43 echo "maxusers  5"
44
45 echo "options  NFS_NOSERVER" 
46 echo "options  SCSI_NO_OP_STRINGS" 
47 echo "options  SCSI_NO_SENSE_STRINGS"