diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile | 8 | ||||
-rw-r--r-- | etc/etc.amd64/rc.amd64 | 23 | ||||
-rw-r--r-- | etc/etc.i386/rc.i386 | 23 | ||||
-rwxr-xr-x | etc/netstart | 103 | ||||
-rw-r--r-- | etc/network.subr | 207 | ||||
-rw-r--r-- | etc/rc | 170 | ||||
-rw-r--r-- | etc/rc.conf | 120 | ||||
-rw-r--r-- | etc/rc.d/netoptions | 207 | ||||
-rw-r--r-- | etc/rc.d/network1 | 207 | ||||
-rw-r--r-- | etc/rc.d/network2 | 207 | ||||
-rw-r--r-- | etc/rc.d/network3 | 207 | ||||
-rw-r--r-- | etc/rc.d/pccard | 12 | ||||
-rw-r--r-- | etc/rc.d/routing | 207 | ||||
-rw-r--r-- | etc/rc.firewall | 11 | ||||
-rw-r--r-- | etc/rc.network | 207 | ||||
-rw-r--r-- | etc/rc.pccard | 12 | ||||
-rw-r--r-- | etc/sysconfig | 340 |
17 files changed, 1643 insertions, 628 deletions
diff --git a/etc/Makefile b/etc/Makefile index 23295db..57b2de5 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,16 +1,16 @@ # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 -# $Id$ +# $Id: Makefile,v 1.149 1997/02/23 09:20:39 peter Exp $ # -rw-r--r-- BINOWN= root BINGRP= wheel BIN1= aliases amd.map csh.cshrc csh.login csh.logout dm.conf \ ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ - inetd.conf login.conf login.access motd modems netstart networks \ + inetd.conf login.conf login.access motd modems networks \ newsyslog.conf phones pccard.conf.sample printcap profile protocols \ - rc rc.firewall rc.local rc.pccard rc.serial \ + rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \ etc.${MACHINE}/rc.${MACHINE} \ - remote security services sysconfig shells \ + remote security services shells \ syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ diff --git a/etc/etc.amd64/rc.amd64 b/etc/etc.amd64/rc.amd64 index c03c249..f7939b6 100644 --- a/etc/etc.amd64/rc.amd64 +++ b/etc/etc.amd64/rc.amd64 @@ -1,27 +1,23 @@ #!/bin/sh - # -# $Id$ +# $Id: rc.i386,v 1.21 1997/02/23 09:21:03 peter Exp $ # Do i386 specific processing # -echo -n 'enabling FreeBSD/i386 options:' - +echo -n 'Initial rc.i386 initialization:' # Start the SCO binary emulation if requested. -if [ "X${ibcs2}" = X"YES" ]; then - echo -n ' '; ibcs2 - # XXX BOGUS - ibcs2 script shouldn't make any output on success +if [ "X${ibcs2_enable}" = X"YES" ]; then + echo -n ' ibcs2'; ibcs2 > /dev/null 2>&1 fi # Start the Linux binary emulation if requested. -if [ "X${linux}" = X"YES" ]; then - echo -n ' '; linux - # XXX BOGUS - Linux script shouldn't make any output on success +if [ "X${linux_aout_enable}" = X"YES" ]; then + echo -n ' linux'; linux > /dev/null 2>&1 fi -if [ "X${xtend}" != X"NO" -a -x /usr/libexec/xtend ]; then +if [ "X${xtend_enable}" = X"YES" ]; then echo -n ' xtend'; /usr/libexec/xtend fi - echo '.' ########################################################################## @@ -32,7 +28,7 @@ echo '.' kbddev=/dev/ttyv0 viddev=/dev/ttyv0 -echo -n "configuring syscons:" +echo -n "rc.i386 configuring syscons:" # keymap if [ "X${keymap}" != X"NO" ]; then @@ -102,14 +98,13 @@ if [ "X${mousedtype}" != XNO ] ; then echo -n ' moused' moused ${mousedflags} -p ${mousedport} -t ${mousedtype} fi - echo '.' # interrupts for /dev/random device if [ "X${rand_irqs}" != X"NO" ] ; then echo -n 'entropy source: ' rndcontrol ${rand_irqs} + echo '.' fi -echo '.' # probably bogus diff --git a/etc/etc.i386/rc.i386 b/etc/etc.i386/rc.i386 index c03c249..f7939b6 100644 --- a/etc/etc.i386/rc.i386 +++ b/etc/etc.i386/rc.i386 @@ -1,27 +1,23 @@ #!/bin/sh - # -# $Id$ +# $Id: rc.i386,v 1.21 1997/02/23 09:21:03 peter Exp $ # Do i386 specific processing # -echo -n 'enabling FreeBSD/i386 options:' - +echo -n 'Initial rc.i386 initialization:' # Start the SCO binary emulation if requested. -if [ "X${ibcs2}" = X"YES" ]; then - echo -n ' '; ibcs2 - # XXX BOGUS - ibcs2 script shouldn't make any output on success +if [ "X${ibcs2_enable}" = X"YES" ]; then + echo -n ' ibcs2'; ibcs2 > /dev/null 2>&1 fi # Start the Linux binary emulation if requested. -if [ "X${linux}" = X"YES" ]; then - echo -n ' '; linux - # XXX BOGUS - Linux script shouldn't make any output on success +if [ "X${linux_aout_enable}" = X"YES" ]; then + echo -n ' linux'; linux > /dev/null 2>&1 fi -if [ "X${xtend}" != X"NO" -a -x /usr/libexec/xtend ]; then +if [ "X${xtend_enable}" = X"YES" ]; then echo -n ' xtend'; /usr/libexec/xtend fi - echo '.' ########################################################################## @@ -32,7 +28,7 @@ echo '.' kbddev=/dev/ttyv0 viddev=/dev/ttyv0 -echo -n "configuring syscons:" +echo -n "rc.i386 configuring syscons:" # keymap if [ "X${keymap}" != X"NO" ]; then @@ -102,14 +98,13 @@ if [ "X${mousedtype}" != XNO ] ; then echo -n ' moused' moused ${mousedflags} -p ${mousedport} -t ${mousedtype} fi - echo '.' # interrupts for /dev/random device if [ "X${rand_irqs}" != X"NO" ] ; then echo -n 'entropy source: ' rndcontrol ${rand_irqs} + echo '.' fi -echo '.' # probably bogus diff --git a/etc/netstart b/etc/netstart deleted file mode 100755 index c6772e0..0000000 --- a/etc/netstart +++ /dev/null @@ -1,103 +0,0 @@ -#!/bin/sh - -# -# $Id$ -# From: @(#)netstart 5.9 (Berkeley) 3/30/91 - -# Note that almost all the user-configurable behavior is no longer in -# this file, but rather in /etc/sysconfig. Please check this file -# first before contemplating any changes here. If you do need to change -# this file for some reason, we would like to know about it. - -# If there is a global system configuration file, suck it in. -if [ -f /etc/sysconfig ]; then - . /etc/sysconfig -fi - -# Set the host name if it is not already set -if [ -z "`hostname -s`" ] ; then - hostname $hostname -fi - -# Set the domainname if we're using NIS -if [ -n "$defaultdomainname" -a "x$defaultdomainname" != "xNO" ] ; then - domainname $defaultdomainname -fi - -# If IP filtering -if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then - sh /etc/rc.firewall -fi - -# -# XXX This is known to cause an error if /usr is nfs mounted since it -# will not be available until after the network is up :-(. Once the -# relocation of sysctl to /sbin is done that problem will go away. -# -if [ -n "$tcp_extensions" -a "x$tcp_extensions" = "xNO" ] ; then - sysctl -w net.inet.tcp.rfc1323=0 - sysctl -w net.inet.tcp.rfc1644=0 -fi - -# Set up all the network interfaces, calling startup scripts if needed -for ifn in ${network_interfaces}; do - if [ -e /etc/start_if.${ifn} ]; then - . /etc/start_if.${ifn} ${ifn} - fi - # Do the primary ifconfig if specified - eval ifconfig_args=\$ifconfig_${ifn} - if [ -n "${ifconfig_args}" ] ; then - ifconfig ${ifn} ${ifconfig_args} - fi - # Check to see if aliases need to be added - alias=0 - while : - do - eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} - if [ -n "${ifconfig_args}" ]; then - ifconfig ${ifn} ${ifconfig_args} alias - alias=`expr ${alias} + 1` - else - break; - fi - done - # Do ipx address if specified - eval ifconfig_args=\$ifconfig_${ifn}_ipx - if [ -n "${ifconfig_args}" ]; then - ifconfig ${ifn} ${ifconfig_args} - fi - ifconfig ${ifn} -done - -if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then - static_routes="default ${static_routes}" - route_default="default ${defaultrouter}" -fi - -# Set up any static routes. This should be done before router discovery. -if [ "x${static_routes}" != "x" ]; then - for i in ${static_routes}; do - eval route_args=\$route_${i} - route add ${route_args} - done -fi - -if [ "x$gateway" != "xNO" ]; then - echo 'configuring host as a gateway.' - sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 -fi - -if [ "x$router" != "xNO" ] ; then - echo -n starting routing daemon: - echo -n " ${router}"; ${router} ${routerflags} - echo '.' -fi - -if [ "x$ipxgateway" != "xNO" ]; then - echo 'configuring host as an ipx gateway.' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 -fi - -if [ "x$ipxrouted" != "xNO" ] ; then - echo -n "starting IPXrouted"; IPXrouted ${ipxrouted} - echo '.' -fi diff --git a/etc/network.subr b/etc/network.subr new file mode 100644 index 0000000..9a9c2c7 --- /dev/null +++ b/etc/network.subr @@ -0,0 +1,207 @@ +#!/bin/sh - +# +# $Id: rc.network,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ +# From: @(#)netstart 5.9 (Berkeley) 3/30/91 + +# Note that almost all the user-configurable behavior is no longer in +# this file, but rather in /etc/rc.conf. Please check that file +# first before contemplating any changes here. If you do need to change +# this file for some reason, we would like to know about it. + +# First pass startup stuff. + +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo -n ' hostname' + fi + + # Set the domainname if we're using NIS + if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then + domainname $nisdomainname + echo -n ' domain' + fi + echo '.' + + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} ${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + # Do ipx address if specified + eval ifconfig_args=\$ifconfig_${ifn}_ipx + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi + ifconfig ${ifn} + done + + # If IP filtering + if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then + echo -n ' firewall' + sh /etc/rc.firewall + fi + + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + + echo -n 'Additional routing options:' + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP gateway=1' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + + if [ "X$router_enable" = X"YES" ]; then + echo -n " ${router}"; ${router} ${router_flags} + fi + + if [ "X$ipxgateway_enable" = X"YES" ]; then + echo -n ' IPX gateway=1' + sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 + fi + + if [ "X$ipxrouted_enable" = X"YES" ]; then + echo -n ' IPXrouted: ' + IPXrouted ${ipxrouted_flags} > /dev/null 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + echo -n 'Doing additional network setup:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echon -n ' tcp extentions=0' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X${named_enable}" = X"YES" ]; then + echo -n ' named'; named ${named_flags} + fi + + if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then + if [ "X${tickadj_enable}" = X"YES" ]; then + echo -n ' tickadj'; tickadj ${tickadj_flags--Aq} + fi + + if [ "X${ntpdate_enable}" = X"YES" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 + fi + + if [ "X${xntpd_enable}" = X"YES" ]; then + echo -n ' xntpd'; xntpd ${xntpd_flags} + fi + fi + + if [ "X${timed_enable}" = X"YES" ]; then + echo -n ' timed'; timed ${timed_flags} + fi + + if [ "X${portmap_enable}" = X"YES" ]; then + echo -n ' portmap'; portmap ${portmap_flags} + fi + + # Start ypserv if we're an NIS server. + # Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. + if [ "X${nis_server_enable}" = X"YES" ]; then + echo -n ' ypserv'; ypserv ${nis_server_flags} + + if [ "X${nis_ypxfrd_enable}" = X"YES" ]; then + echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags} + fi + + if [ "X${nis_yppasswdd_enable}" = X"YES" ]; then + echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags} + fi + fi + + # Start ypbind if we're an NIS client + if [ "X${nis_client_enable}" = X"YES" ]; then + echo -n ' ypbind'; ypbind ${nis_client_flags} + if [ "X${nis_ypset_enable}" = X"YES" ]; then + echo -n ' ypset'; ypset ${nis_ypset_flags} + fi + fi + + echo '.' + network_pass2_done=YES +} + +network_pass3() { + echo -n 'Starting final network daemons:' + + if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then + echo -n ' mountd' + if [ "X${weak_mountd_authentication}" = X"YES" ]; then + mountd_flags="-n" + fi + mountd ${mountd_flags} + if [ "X${nfs_reserved_port_only}" = X"YES" ]; then + echo -n ' nfsprivport=1' + sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1 + fi + echo -n ' nfsd'; nfsd -u -t 4 + if [ "X$rpc_lockd_enable" = X"YES" ]; then + echo -n ' rpc.lockd'; rpc.lockd + fi + if [ "X$rpc_statd_enable" = X"YES" ]; then + echo -n ' rpc.statd'; rpc.statd + fi + fi + + if [ "X${nfs_client_enable}" = X"YES" ]; then + echo -n ' nfsiod'; nfsiod -n 4 + fi + + if [ "X${amd_enable}" = X"YES" ]; then + echo -n ' amd' + amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null + fi + + if [ "X${rwhod_enable}" = X"YES" ]; then + echo -n ' rwhod'; rwhod + fi + + # Kerberos runs ONLY on the Kerberos server machine + if [ "X${kerberos_server_enable}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; kadmind -n >/dev/null 2>&1 &) & + fi + + # IP multicast routing daemon + if [ "X${mrouted_enable}" = X"YES" ]; then + echo -n ' mrouted'; mrouted ${mrouted_flags} + fi + echo '.' + network_pass3_done=YES +} @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.115 1997/04/01 01:00:34 pst Exp $ +# $Id: rc,v 1.116 1997/04/09 20:14:59 guido Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -8,7 +8,7 @@ # and the console is the controlling terminal. # Note that almost all the user-configurable behavior is no longer in -# this file, but rather in /etc/sysconfig. Please check this file +# this file, but rather in /etc/rc.conf. Please check this file # first before contemplating any changes here. stty status '^T' @@ -23,15 +23,13 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin export PATH # Configure ccd devices. -if [ -f /etc/ccd.conf ] -then +if [ -f /etc/ccd.conf ]; then ccdconfig -C fi swapon -a -if [ $1x = autobootx ] -then +if [ $1x = autobootx ]; then echo Automatic reboot in progress... fsck -p case $? in @@ -84,20 +82,27 @@ if [ $? != 0 ]; then exit 1 fi +# If there is a global system configuration file, suck it in. +if [ -f /etc/rc.conf ]; then + . /etc/rc.conf +fi + +# If old file exists, whine until they fix it. +if [ -f /etc/sysconfig ]; then + echo "Warning: /etc/sysconfig has been replaced by /etc/rc.conf." + echo "You should switch to /etc/rc.conf ASAP to eliminate this warning." +fi + adjkerntz -i # Keep a copy of the boot messages around -/sbin/dmesg > /var/run/dmesg.boot +dmesg > /var/run/dmesg.boot -# If there is a global system configuration file, suck it in. -if [ -f /etc/sysconfig ]; then - . /etc/sysconfig -fi # Add additional swapfile, if configured. if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then echo "Adding $swapfile as additional swap." - /usr/sbin/vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b + vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b fi # configure serial devices @@ -110,9 +115,10 @@ if [ -f /etc/rc.pccard ]; then . /etc/rc.pccard fi -# start up the network -if [ -f /etc/netstart ]; then - sh /etc/netstart +# start up the initial network configuration. +if [ -f /etc/rc.network ]; then + . /etc/rc.network # We only need to do this once. + network_pass1 fi mount -a -t nfs >/dev/null 2>&1 @@ -182,69 +188,13 @@ if [ "X${syslogdflags}" != X"NO" ] ; then fi rm -f /var/run/log - echo ' syslogd.'; syslogd ${syslogdflags} + echo 'Starting syslogd.'; syslogd ${syslogd_flags} fi -echo -n starting early network daemons: - -# $namedflags is imported from /etc/sysconfig -if [ "X${namedflags}" != X"NO" ]; then - echo -n ' named'; named $namedflags +if [ -n "$network_pass1_done" ]; then + network_pass2 fi -# $ntpdate and $xntpdflags are imported from /etc/sysconfig. -# If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly. -# If $xntpdflags != NO, start xntpd. -if [ "X${ntpdate}" != X"NO" -o "X${xntpdflags}" != X"NO" ]; then - if [ "X${tickadjflags}" != X"NO" ]; then - echo -n ' tickadj'; tickadj ${tickadjflags--Aq} - fi - - if [ "X${ntpdate}" != X"NO" ]; then - echo -n ' ntpdate'; ntpdate ${ntpdate} >/dev/null 2>&1 - fi - - if [ "X${xntpdflags}" != X"NO" ]; then - echo -n ' xntpd'; xntpd ${xntpdflags} - fi -fi - -# $timedflags is imported from /etc/sysconfig; -# if $timedflags == NO, timed isn't run. -if [ "X${timedflags}" != X"NO" ]; then - echo -n ' timed'; timed ${timedflags} -fi - -# Portmapper should always be run, to provide RPC services for inetd. -# if $portmapflags == NO, portmap isn't run. -if [ -x /usr/sbin/portmap -a "X${portmapflags}" != X"NO" ]; then - echo -n ' portmap'; portmap ${portmapflags} -fi - -# Start ypserv if we're an NIS server. -# Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. -if [ "X${nis_serverflags}" != X"NO" ]; then - echo -n ' ypserv'; ypserv ${nis_serverflags} - - if [ "X${ypxfrdflags}" != X"NO" ]; then - echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${ypxfrdflags} - fi - - if [ "X${yppasswddflags}" != X"NO" ]; then - echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${yppasswddflags} - fi -fi - -# Start ypbind if we're an NIS client -if [ "X${nis_clientflags}" != X"NO" ]; then - echo -n ' ypbind'; ypbind ${nis_clientflags} - if [ "X${nis_ypsetflags}" != X"NO" ]; then - echo -n ' ypset'; ypset ${nis_ypsetflags} - fi -fi - -echo '.' - # Check the quotas (must be after ypbind if using NIS) if [ "X${check_quotas}" = X"YES" ]; then echo -n 'checking quotas:' @@ -253,53 +203,10 @@ if [ "X${check_quotas}" = X"YES" ]; then quotaon -a fi -echo -n starting other network daemons: - -if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then - echo -n ' mountd' - if [ "X${weak_mountd_authentication}" = X"YES" ]; then - mountd -n - else - mountd - fi - if [ "X${nfs_reserved_port_only}" = X"YES" ]; then - sysctl -w vfs.nfs.nfs_privport=1 - fi - echo -n ' nfsd'; nfsd -u -t 4 -# Warning: rpc.lockd is broken. -# Only uncomment this line if the consequences are fully understood. -# echo -n ' rpc.lockd'; rpc.lockd - echo -n ' rpc.statd'; rpc.statd -fi - -if [ "X${nfs_client}" = X"YES" ]; then - echo -n ' nfsiod'; nfsiod -n 4 -fi - -if [ "X${amdflags}" != X"NO" ]; then - echo -n ' amd' - amd -p ${amdflags} > /var/run/amd.pid -fi - -# $rwhod is imported from /etc/sysconfig; -# if $rwhod is set to YES, rwhod is run. -if [ "X${rwhod}" = X"YES" ]; then - echo -n ' rwhod'; rwhod +if [ -n "$network_pass2_done" ]; then + network_pass3 fi -# Kerberos runs ONLY on the Kerberos server machine -if [ "X${kerberos_server}" = X"YES" ]; then - echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & - echo -n ' kadmind'; \ - (sleep 20; kadmind -n >/dev/null 2>&1 &) & -fi - -# IP multicast routing daemon -if [ "X${mrouted}" != X"NO" -a -x /usr/sbin/mrouted ]; then - echo -n ' mrouted'; mrouted ${mrouted} -fi - -echo '.' # build ps databases kvm_mkdb @@ -312,7 +219,7 @@ then "password file may be incorrect -- /etc/ptmp exists" fi -if [ "X${accounting}" = X"YES" -a -d /var/account ]; then +if [ "X${accounting_enable}" = X"YES" -a -d /var/account ]; then echo 'turning on accounting' if [ ! -e /var/account/acct ]; then touch /var/account/acct && chmod 600 /var/account/acct @@ -322,15 +229,12 @@ fi # Make shared lib searching a little faster. Leave /usr/lib first if you # add your own entries or you may come to grief. -if [ -x /sbin/ldconfig ]; then - _LDC=/usr/lib - if [ -d /usr/lib/compat ]; then _LDC="${_LDC} /usr/lib/compat" ; fi - if [ -d /usr/X11R6/lib ]; then _LDC="${_LDC} /usr/X11R6/lib" ; fi - if [ -d /usr/X386/lib ]; then _LDC="${_LDC} /usr/X386/lib" ; fi - if [ -d /usr/local/lib ]; then _LDC="${_LDC} /usr/local/lib" ; fi - echo 'setting ldconfig path:' ${_LDC} - ldconfig ${_LDC} -fi +_LDC=/usr/lib +if [ -d /usr/lib/compat ]; then _LDC="${_LDC} /usr/lib/compat" ; fi +if [ -d /usr/X11R6/lib ]; then _LDC="${_LDC} /usr/X11R6/lib" ; fi +if [ -d /usr/local/lib ]; then _LDC="${_LDC} /usr/local/lib" ; fi +echo 'setting ldconfig path:' ${_LDC} +ldconfig ${_LDC} # Now start up miscellaneous daemons that don't belong anywhere else # @@ -338,14 +242,12 @@ echo -n standard daemons: echo -n ' inetd'; inetd echo -n ' cron'; cron -if [ "X${lpd}" != X"NO" -a -x /usr/sbin/lpd ]; then +if [ "X${lpd_enable}" = X"YES" ]; then echo -n ' printer'; lpd fi -# $sendmail_flags is imported from /etc/sysconfig; -# if $sendmail_flags is something other than NO, sendmail is run. -if [ "X${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then - echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} +if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then + echo -n ' sendmail'; sendmail ${sendmail_flags} fi echo '.' diff --git a/etc/rc.conf b/etc/rc.conf new file mode 100644 index 0000000..5ea0254 --- /dev/null +++ b/etc/rc.conf @@ -0,0 +1,120 @@ +#!/bin/sh +# + +# This is rc.conf - a file full of useful variables that you can set +# to change the default startup behavior of your system. +# +# $Id: rc.conf,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ + +############################################################## +### Important initial Boot-time options ##################### +############################################################## + +swapfile=NO # Set to name of swapfile if aux swapfile desired. +apm_enable=NO # Set to YES if you want APM enabled. +pccard_enable=NO # Set to YES if you want to configure PCCARD devices. +pccard_mem=DEFAULT # If pccard_enable=YES, this is card memory address. +pccard_ifconfig=NO # Specialized pccard ethernet configuration (or NO). +local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. + + +############################################################## +### Network configuration sub-section ###################### +############################################################## + +### Basic network options: ### +hostname=myname.my.domain # Set this! +nisdomainname=NO # Set to NIS domain if using NIS (or NO). +firewall=NO # Set to firewall type or NO for none. +tcp_extentions=YES # Allow RFC1323 & RFC1544 extentions (or NO). +network_interfaces="lo0" # List of network interfaces (lo0 is loopback). +ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. + +### Network daemon (miscellaneous) & NFS options: ### +syslogd_enable=YES # Run syslog daemon (or NO). +syslogd_flags="" # Flags to syslogd (if enabled). +named_enable=NO # Run named, the DNS server (or NO). +named_flags="" # Flags to named (if enabled). +kerberos_server_enable=NO # Run a kerberos master server (or NO). +rwhod_enable=NO # Run the rwho daemon (or NO). +amd_enable=NO # Run amd service with $amd_flags (or NO). +amd_flags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map" +nfs_client_enable=NO # This host is an NFS client (or NO). +nfs_server_enable=NO # This host is an NFS server (or NO). +weak_mountd_authentication=NO # Running PCNFSD / other non-root nfsd (or NO). +nfs_reserved_port_only=NO # Provide NFS only on secure port (or NO). +rpc_lockd_enable=NO # Run NFS rpc.lockd (*broken!*) if nfs_server. +rpc_statd_enable=YES # Run NFS rpc.statd if nfs_server (or NO). +portmap_enable=YES # Run the portmapper service (or NO). +portmap_flags="" # Flags to portmap (if enabled). +xtend_enable=NO # Run the X-10 power controller daemon. +xtend_flags="" # Flags to xtend (if enabled). + +### Network Time Services options: ### +timed_enabled=NO # Run the time daemon (or NO). +timed_flags="" # Flags to timed (if enabled). +ntpdate_enable=NO # Run the ntpdate to sync time (or NO). +ntpdate_flags="" # Flags to ntpdate (if enabled). +xntpd_enable=NO # Run xntpd Network Time Protocol (or NO). +xntpd_flags="" # Flags to xntpd (if enabled). +tickadj_enable=YES # If xntp is enabled, also run tickadj. +tickadj_flags="-Aq" # Flags to tickadj (if enabled). + +# Network Information Services (NIS) options: ### +nis_client_enable=NO # We're an NIS client (or NO) +nis_client_flags="" # Flags to ypbind (if enabled). +nis_ypset_enable=NO # Run ypset at boot time (or NO). +nis_ypset_flags="" # Flags to ypset (if enabled). +nis_server_enable=NO # We're an NIS server (or NO) +nis_server_flags="" # Flags to ypserv (if enabled). +nis_ypxfrd_enable=NO # Run rpc.ypxfrd at boot time (or NO). +nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled). +nis_yppasswd_enable=NO # Run rpc.yppasswd at boot time (or NO). +nis_yppasswd_flags="" # Flags to rpc.yppasswd (if enabled). + +### Network routing options: ### +defaultrouter=NO # Set to default gateway (or NO). +static_routes="" # Set to static route list (or leave empty). +gateway_enable=NO # Set to YES if this host will be a gateway. +router_enable=YES # Set to YES to enable a routing daemon. +router=routed # Name of routing daemon to use if enabled. +router_flags=-q # Flags for routing daemon. +mrouted_enable=NO # Do multicast routing (see /etc/mrouted.conf) +ipxgateway_enable=NO # Set to YES to enable IPX routing. +ipxrouted_enable=NO # Set to YES to run the IPX routing daemon. +ipxrouted_flags="" # Flags for IPX routing daemon. + + +############################################################## +### System console options ################################# +############################################################## + +keymap=NO # keymap in /usr/share/syscons/keymaps/* (or NO). +keyrate=NO # Keyboard rate to: slow, normal, fast (or NO). +keychange=NO # function keys default values (or NO). +cursor=NO # cursor type {normal|blink|destructive} (or NO). +scrnmap=NO # screen map in /usr/share/syscons/scrnmaps/* (or NO). +font8x16=NO # font 8x16 from /usr/share/syscons/fonts/* (or NO). +font8x14=NO # font 8x14 from /usr/share/syscons/fonts/* (or NO). +font8x8=NO # font 8x8 from /usr/share/syscons/fonts/* (or NO). +blanktime=NO # blank time (in seconds) or "NO" to turn it off. +saver=NO # screen saver desired: blank/green/snake/star/NO. +mousedtype=NO # See man page for rc.conf(8) for available settings. +mousedport=/dev/cuaa0 # Set to your mouse port (required if mousetype set) +mousedflags="" # Any additional flags to moused. + + +############################################################## +### Miscellaneous administrative options ################### +############################################################## + +lpd=YES # Run the line printer daemon +sendmail_enable=YES # Run the sendmail daemon (or NO). +sendmail_flags="-bd -q30m" # -bd is pretty mandatory +savecore_enable=NO # Save kernel crashdumps for debugging (or NO). +dumpdev=NO # Device name to crashdump to (if enabled). +check_quotas=NO # Check quotas (or NO). +accounting=NO # Turn on process accounting (or NO). +ibcs2_enable=NO # Ibcs2 (SCO) emulation loaded at startup (or NO). +linux_aout_enable=NO # Linux a.out emulation loaded at startup (or NO). +rand_irqs="NO" # Stir the entropy pool (or NO). diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions new file mode 100644 index 0000000..9a9c2c7 --- /dev/null +++ b/etc/rc.d/netoptions @@ -0,0 +1,207 @@ +#!/bin/sh - +# +# $Id: rc.network,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ +# From: @(#)netstart 5.9 (Berkeley) 3/30/91 + +# Note that almost all the user-configurable behavior is no longer in +# this file, but rather in /etc/rc.conf. Please check that file +# first before contemplating any changes here. If you do need to change +# this file for some reason, we would like to know about it. + +# First pass startup stuff. + +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo -n ' hostname' + fi + + # Set the domainname if we're using NIS + if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then + domainname $nisdomainname + echo -n ' domain' + fi + echo '.' + + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} ${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + # Do ipx address if specified + eval ifconfig_args=\$ifconfig_${ifn}_ipx + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi + ifconfig ${ifn} + done + + # If IP filtering + if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then + echo -n ' firewall' + sh /etc/rc.firewall + fi + + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + + echo -n 'Additional routing options:' + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP gateway=1' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + + if [ "X$router_enable" = X"YES" ]; then + echo -n " ${router}"; ${router} ${router_flags} + fi + + if [ "X$ipxgateway_enable" = X"YES" ]; then + echo -n ' IPX gateway=1' + sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 + fi + + if [ "X$ipxrouted_enable" = X"YES" ]; then + echo -n ' IPXrouted: ' + IPXrouted ${ipxrouted_flags} > /dev/null 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + echo -n 'Doing additional network setup:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echon -n ' tcp extentions=0' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X${named_enable}" = X"YES" ]; then + echo -n ' named'; named ${named_flags} + fi + + if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then + if [ "X${tickadj_enable}" = X"YES" ]; then + echo -n ' tickadj'; tickadj ${tickadj_flags--Aq} + fi + + if [ "X${ntpdate_enable}" = X"YES" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 + fi + + if [ "X${xntpd_enable}" = X"YES" ]; then + echo -n ' xntpd'; xntpd ${xntpd_flags} + fi + fi + + if [ "X${timed_enable}" = X"YES" ]; then + echo -n ' timed'; timed ${timed_flags} + fi + + if [ "X${portmap_enable}" = X"YES" ]; then + echo -n ' portmap'; portmap ${portmap_flags} + fi + + # Start ypserv if we're an NIS server. + # Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. + if [ "X${nis_server_enable}" = X"YES" ]; then + echo -n ' ypserv'; ypserv ${nis_server_flags} + + if [ "X${nis_ypxfrd_enable}" = X"YES" ]; then + echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags} + fi + + if [ "X${nis_yppasswdd_enable}" = X"YES" ]; then + echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags} + fi + fi + + # Start ypbind if we're an NIS client + if [ "X${nis_client_enable}" = X"YES" ]; then + echo -n ' ypbind'; ypbind ${nis_client_flags} + if [ "X${nis_ypset_enable}" = X"YES" ]; then + echo -n ' ypset'; ypset ${nis_ypset_flags} + fi + fi + + echo '.' + network_pass2_done=YES +} + +network_pass3() { + echo -n 'Starting final network daemons:' + + if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then + echo -n ' mountd' + if [ "X${weak_mountd_authentication}" = X"YES" ]; then + mountd_flags="-n" + fi + mountd ${mountd_flags} + if [ "X${nfs_reserved_port_only}" = X"YES" ]; then + echo -n ' nfsprivport=1' + sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1 + fi + echo -n ' nfsd'; nfsd -u -t 4 + if [ "X$rpc_lockd_enable" = X"YES" ]; then + echo -n ' rpc.lockd'; rpc.lockd + fi + if [ "X$rpc_statd_enable" = X"YES" ]; then + echo -n ' rpc.statd'; rpc.statd + fi + fi + + if [ "X${nfs_client_enable}" = X"YES" ]; then + echo -n ' nfsiod'; nfsiod -n 4 + fi + + if [ "X${amd_enable}" = X"YES" ]; then + echo -n ' amd' + amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null + fi + + if [ "X${rwhod_enable}" = X"YES" ]; then + echo -n ' rwhod'; rwhod + fi + + # Kerberos runs ONLY on the Kerberos server machine + if [ "X${kerberos_server_enable}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; kadmind -n >/dev/null 2>&1 &) & + fi + + # IP multicast routing daemon + if [ "X${mrouted_enable}" = X"YES" ]; then + echo -n ' mrouted'; mrouted ${mrouted_flags} + fi + echo '.' + network_pass3_done=YES +} diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 new file mode 100644 index 0000000..9a9c2c7 --- /dev/null +++ b/etc/rc.d/network1 @@ -0,0 +1,207 @@ +#!/bin/sh - +# +# $Id: rc.network,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ +# From: @(#)netstart 5.9 (Berkeley) 3/30/91 + +# Note that almost all the user-configurable behavior is no longer in +# this file, but rather in /etc/rc.conf. Please check that file +# first before contemplating any changes here. If you do need to change +# this file for some reason, we would like to know about it. + +# First pass startup stuff. + +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo -n ' hostname' + fi + + # Set the domainname if we're using NIS + if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then + domainname $nisdomainname + echo -n ' domain' + fi + echo '.' + + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} ${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + # Do ipx address if specified + eval ifconfig_args=\$ifconfig_${ifn}_ipx + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi + ifconfig ${ifn} + done + + # If IP filtering + if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then + echo -n ' firewall' + sh /etc/rc.firewall + fi + + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + + echo -n 'Additional routing options:' + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP gateway=1' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + + if [ "X$router_enable" = X"YES" ]; then + echo -n " ${router}"; ${router} ${router_flags} + fi + + if [ "X$ipxgateway_enable" = X"YES" ]; then + echo -n ' IPX gateway=1' + sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 + fi + + if [ "X$ipxrouted_enable" = X"YES" ]; then + echo -n ' IPXrouted: ' + IPXrouted ${ipxrouted_flags} > /dev/null 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + echo -n 'Doing additional network setup:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echon -n ' tcp extentions=0' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X${named_enable}" = X"YES" ]; then + echo -n ' named'; named ${named_flags} + fi + + if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then + if [ "X${tickadj_enable}" = X"YES" ]; then + echo -n ' tickadj'; tickadj ${tickadj_flags--Aq} + fi + + if [ "X${ntpdate_enable}" = X"YES" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 + fi + + if [ "X${xntpd_enable}" = X"YES" ]; then + echo -n ' xntpd'; xntpd ${xntpd_flags} + fi + fi + + if [ "X${timed_enable}" = X"YES" ]; then + echo -n ' timed'; timed ${timed_flags} + fi + + if [ "X${portmap_enable}" = X"YES" ]; then + echo -n ' portmap'; portmap ${portmap_flags} + fi + + # Start ypserv if we're an NIS server. + # Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. + if [ "X${nis_server_enable}" = X"YES" ]; then + echo -n ' ypserv'; ypserv ${nis_server_flags} + + if [ "X${nis_ypxfrd_enable}" = X"YES" ]; then + echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags} + fi + + if [ "X${nis_yppasswdd_enable}" = X"YES" ]; then + echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags} + fi + fi + + # Start ypbind if we're an NIS client + if [ "X${nis_client_enable}" = X"YES" ]; then + echo -n ' ypbind'; ypbind ${nis_client_flags} + if [ "X${nis_ypset_enable}" = X"YES" ]; then + echo -n ' ypset'; ypset ${nis_ypset_flags} + fi + fi + + echo '.' + network_pass2_done=YES +} + +network_pass3() { + echo -n 'Starting final network daemons:' + + if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then + echo -n ' mountd' + if [ "X${weak_mountd_authentication}" = X"YES" ]; then + mountd_flags="-n" + fi + mountd ${mountd_flags} + if [ "X${nfs_reserved_port_only}" = X"YES" ]; then + echo -n ' nfsprivport=1' + sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1 + fi + echo -n ' nfsd'; nfsd -u -t 4 + if [ "X$rpc_lockd_enable" = X"YES" ]; then + echo -n ' rpc.lockd'; rpc.lockd + fi + if [ "X$rpc_statd_enable" = X"YES" ]; then + echo -n ' rpc.statd'; rpc.statd + fi + fi + + if [ "X${nfs_client_enable}" = X"YES" ]; then + echo -n ' nfsiod'; nfsiod -n 4 + fi + + if [ "X${amd_enable}" = X"YES" ]; then + echo -n ' amd' + amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null + fi + + if [ "X${rwhod_enable}" = X"YES" ]; then + echo -n ' rwhod'; rwhod + fi + + # Kerberos runs ONLY on the Kerberos server machine + if [ "X${kerberos_server_enable}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; kadmind -n >/dev/null 2>&1 &) & + fi + + # IP multicast routing daemon + if [ "X${mrouted_enable}" = X"YES" ]; then + echo -n ' mrouted'; mrouted ${mrouted_flags} + fi + echo '.' + network_pass3_done=YES +} diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 new file mode 100644 index 0000000..9a9c2c7 --- /dev/null +++ b/etc/rc.d/network2 @@ -0,0 +1,207 @@ +#!/bin/sh - +# +# $Id: rc.network,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ +# From: @(#)netstart 5.9 (Berkeley) 3/30/91 + +# Note that almost all the user-configurable behavior is no longer in +# this file, but rather in /etc/rc.conf. Please check that file +# first before contemplating any changes here. If you do need to change +# this file for some reason, we would like to know about it. + +# First pass startup stuff. + +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo -n ' hostname' + fi + + # Set the domainname if we're using NIS + if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then + domainname $nisdomainname + echo -n ' domain' + fi + echo '.' + + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} ${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + # Do ipx address if specified + eval ifconfig_args=\$ifconfig_${ifn}_ipx + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi + ifconfig ${ifn} + done + + # If IP filtering + if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then + echo -n ' firewall' + sh /etc/rc.firewall + fi + + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + + echo -n 'Additional routing options:' + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP gateway=1' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + + if [ "X$router_enable" = X"YES" ]; then + echo -n " ${router}"; ${router} ${router_flags} + fi + + if [ "X$ipxgateway_enable" = X"YES" ]; then + echo -n ' IPX gateway=1' + sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 + fi + + if [ "X$ipxrouted_enable" = X"YES" ]; then + echo -n ' IPXrouted: ' + IPXrouted ${ipxrouted_flags} > /dev/null 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + echo -n 'Doing additional network setup:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echon -n ' tcp extentions=0' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X${named_enable}" = X"YES" ]; then + echo -n ' named'; named ${named_flags} + fi + + if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then + if [ "X${tickadj_enable}" = X"YES" ]; then + echo -n ' tickadj'; tickadj ${tickadj_flags--Aq} + fi + + if [ "X${ntpdate_enable}" = X"YES" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 + fi + + if [ "X${xntpd_enable}" = X"YES" ]; then + echo -n ' xntpd'; xntpd ${xntpd_flags} + fi + fi + + if [ "X${timed_enable}" = X"YES" ]; then + echo -n ' timed'; timed ${timed_flags} + fi + + if [ "X${portmap_enable}" = X"YES" ]; then + echo -n ' portmap'; portmap ${portmap_flags} + fi + + # Start ypserv if we're an NIS server. + # Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. + if [ "X${nis_server_enable}" = X"YES" ]; then + echo -n ' ypserv'; ypserv ${nis_server_flags} + + if [ "X${nis_ypxfrd_enable}" = X"YES" ]; then + echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags} + fi + + if [ "X${nis_yppasswdd_enable}" = X"YES" ]; then + echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags} + fi + fi + + # Start ypbind if we're an NIS client + if [ "X${nis_client_enable}" = X"YES" ]; then + echo -n ' ypbind'; ypbind ${nis_client_flags} + if [ "X${nis_ypset_enable}" = X"YES" ]; then + echo -n ' ypset'; ypset ${nis_ypset_flags} + fi + fi + + echo '.' + network_pass2_done=YES +} + +network_pass3() { + echo -n 'Starting final network daemons:' + + if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then + echo -n ' mountd' + if [ "X${weak_mountd_authentication}" = X"YES" ]; then + mountd_flags="-n" + fi + mountd ${mountd_flags} + if [ "X${nfs_reserved_port_only}" = X"YES" ]; then + echo -n ' nfsprivport=1' + sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1 + fi + echo -n ' nfsd'; nfsd -u -t 4 + if [ "X$rpc_lockd_enable" = X"YES" ]; then + echo -n ' rpc.lockd'; rpc.lockd + fi + if [ "X$rpc_statd_enable" = X"YES" ]; then + echo -n ' rpc.statd'; rpc.statd + fi + fi + + if [ "X${nfs_client_enable}" = X"YES" ]; then + echo -n ' nfsiod'; nfsiod -n 4 + fi + + if [ "X${amd_enable}" = X"YES" ]; then + echo -n ' amd' + amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null + fi + + if [ "X${rwhod_enable}" = X"YES" ]; then + echo -n ' rwhod'; rwhod + fi + + # Kerberos runs ONLY on the Kerberos server machine + if [ "X${kerberos_server_enable}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; kadmind -n >/dev/null 2>&1 &) & + fi + + # IP multicast routing daemon + if [ "X${mrouted_enable}" = X"YES" ]; then + echo -n ' mrouted'; mrouted ${mrouted_flags} + fi + echo '.' + network_pass3_done=YES +} diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 new file mode 100644 index 0000000..9a9c2c7 --- /dev/null +++ b/etc/rc.d/network3 @@ -0,0 +1,207 @@ +#!/bin/sh - +# +# $Id: rc.network,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ +# From: @(#)netstart 5.9 (Berkeley) 3/30/91 + +# Note that almost all the user-configurable behavior is no longer in +# this file, but rather in /etc/rc.conf. Please check that file +# first before contemplating any changes here. If you do need to change +# this file for some reason, we would like to know about it. + +# First pass startup stuff. + +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo -n ' hostname' + fi + + # Set the domainname if we're using NIS + if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then + domainname $nisdomainname + echo -n ' domain' + fi + echo '.' + + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} ${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + # Do ipx address if specified + eval ifconfig_args=\$ifconfig_${ifn}_ipx + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi + ifconfig ${ifn} + done + + # If IP filtering + if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then + echo -n ' firewall' + sh /etc/rc.firewall + fi + + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + + echo -n 'Additional routing options:' + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP gateway=1' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + + if [ "X$router_enable" = X"YES" ]; then + echo -n " ${router}"; ${router} ${router_flags} + fi + + if [ "X$ipxgateway_enable" = X"YES" ]; then + echo -n ' IPX gateway=1' + sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 + fi + + if [ "X$ipxrouted_enable" = X"YES" ]; then + echo -n ' IPXrouted: ' + IPXrouted ${ipxrouted_flags} > /dev/null 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + echo -n 'Doing additional network setup:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echon -n ' tcp extentions=0' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X${named_enable}" = X"YES" ]; then + echo -n ' named'; named ${named_flags} + fi + + if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then + if [ "X${tickadj_enable}" = X"YES" ]; then + echo -n ' tickadj'; tickadj ${tickadj_flags--Aq} + fi + + if [ "X${ntpdate_enable}" = X"YES" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 + fi + + if [ "X${xntpd_enable}" = X"YES" ]; then + echo -n ' xntpd'; xntpd ${xntpd_flags} + fi + fi + + if [ "X${timed_enable}" = X"YES" ]; then + echo -n ' timed'; timed ${timed_flags} + fi + + if [ "X${portmap_enable}" = X"YES" ]; then + echo -n ' portmap'; portmap ${portmap_flags} + fi + + # Start ypserv if we're an NIS server. + # Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. + if [ "X${nis_server_enable}" = X"YES" ]; then + echo -n ' ypserv'; ypserv ${nis_server_flags} + + if [ "X${nis_ypxfrd_enable}" = X"YES" ]; then + echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags} + fi + + if [ "X${nis_yppasswdd_enable}" = X"YES" ]; then + echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags} + fi + fi + + # Start ypbind if we're an NIS client + if [ "X${nis_client_enable}" = X"YES" ]; then + echo -n ' ypbind'; ypbind ${nis_client_flags} + if [ "X${nis_ypset_enable}" = X"YES" ]; then + echo -n ' ypset'; ypset ${nis_ypset_flags} + fi + fi + + echo '.' + network_pass2_done=YES +} + +network_pass3() { + echo -n 'Starting final network daemons:' + + if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then + echo -n ' mountd' + if [ "X${weak_mountd_authentication}" = X"YES" ]; then + mountd_flags="-n" + fi + mountd ${mountd_flags} + if [ "X${nfs_reserved_port_only}" = X"YES" ]; then + echo -n ' nfsprivport=1' + sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1 + fi + echo -n ' nfsd'; nfsd -u -t 4 + if [ "X$rpc_lockd_enable" = X"YES" ]; then + echo -n ' rpc.lockd'; rpc.lockd + fi + if [ "X$rpc_statd_enable" = X"YES" ]; then + echo -n ' rpc.statd'; rpc.statd + fi + fi + + if [ "X${nfs_client_enable}" = X"YES" ]; then + echo -n ' nfsiod'; nfsiod -n 4 + fi + + if [ "X${amd_enable}" = X"YES" ]; then + echo -n ' amd' + amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null + fi + + if [ "X${rwhod_enable}" = X"YES" ]; then + echo -n ' rwhod'; rwhod + fi + + # Kerberos runs ONLY on the Kerberos server machine + if [ "X${kerberos_server_enable}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; kadmind -n >/dev/null 2>&1 &) & + fi + + # IP multicast routing daemon + if [ "X${mrouted_enable}" = X"YES" ]; then + echo -n ' mrouted'; mrouted ${mrouted_flags} + fi + echo '.' + network_pass3_done=YES +} diff --git a/etc/rc.d/pccard b/etc/rc.d/pccard index 341e733..06b4210 100644 --- a/etc/rc.d/pccard +++ b/etc/rc.d/pccard @@ -4,17 +4,17 @@ # HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp> # -if [ "x$apm_enable" = "xYES" ] ; then +if [ "X$apm_enable" = X"YES" ] ; then echo "Enable APM BIOS." - /usr/sbin/apmconf -e + apmconf -e fi -if [ "x$pccard_enable" != "xNO" ] ; then +if [ "X$pccard_enable" = X"YES" ] ; then if [ "x$pccard_mem" != "xDEFAULT" ] ; then - /usr/sbin/pccardc pccardmem $pccard_mem + pccardc pccardmem $pccard_mem else - /usr/sbin/pccardc pccardmem 0xd0000 + pccardc pccardmem 0xd0000 fi echo "Enable PC-card." - /usr/sbin/pccardd & + pccardd & fi diff --git a/etc/rc.d/routing b/etc/rc.d/routing new file mode 100644 index 0000000..9a9c2c7 --- /dev/null +++ b/etc/rc.d/routing @@ -0,0 +1,207 @@ +#!/bin/sh - +# +# $Id: rc.network,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ +# From: @(#)netstart 5.9 (Berkeley) 3/30/91 + +# Note that almost all the user-configurable behavior is no longer in +# this file, but rather in /etc/rc.conf. Please check that file +# first before contemplating any changes here. If you do need to change +# this file for some reason, we would like to know about it. + +# First pass startup stuff. + +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo -n ' hostname' + fi + + # Set the domainname if we're using NIS + if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then + domainname $nisdomainname + echo -n ' domain' + fi + echo '.' + + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} ${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + # Do ipx address if specified + eval ifconfig_args=\$ifconfig_${ifn}_ipx + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi + ifconfig ${ifn} + done + + # If IP filtering + if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then + echo -n ' firewall' + sh /etc/rc.firewall + fi + + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + + echo -n 'Additional routing options:' + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP gateway=1' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + + if [ "X$router_enable" = X"YES" ]; then + echo -n " ${router}"; ${router} ${router_flags} + fi + + if [ "X$ipxgateway_enable" = X"YES" ]; then + echo -n ' IPX gateway=1' + sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 + fi + + if [ "X$ipxrouted_enable" = X"YES" ]; then + echo -n ' IPXrouted: ' + IPXrouted ${ipxrouted_flags} > /dev/null 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + echo -n 'Doing additional network setup:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echon -n ' tcp extentions=0' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X${named_enable}" = X"YES" ]; then + echo -n ' named'; named ${named_flags} + fi + + if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then + if [ "X${tickadj_enable}" = X"YES" ]; then + echo -n ' tickadj'; tickadj ${tickadj_flags--Aq} + fi + + if [ "X${ntpdate_enable}" = X"YES" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 + fi + + if [ "X${xntpd_enable}" = X"YES" ]; then + echo -n ' xntpd'; xntpd ${xntpd_flags} + fi + fi + + if [ "X${timed_enable}" = X"YES" ]; then + echo -n ' timed'; timed ${timed_flags} + fi + + if [ "X${portmap_enable}" = X"YES" ]; then + echo -n ' portmap'; portmap ${portmap_flags} + fi + + # Start ypserv if we're an NIS server. + # Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. + if [ "X${nis_server_enable}" = X"YES" ]; then + echo -n ' ypserv'; ypserv ${nis_server_flags} + + if [ "X${nis_ypxfrd_enable}" = X"YES" ]; then + echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags} + fi + + if [ "X${nis_yppasswdd_enable}" = X"YES" ]; then + echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags} + fi + fi + + # Start ypbind if we're an NIS client + if [ "X${nis_client_enable}" = X"YES" ]; then + echo -n ' ypbind'; ypbind ${nis_client_flags} + if [ "X${nis_ypset_enable}" = X"YES" ]; then + echo -n ' ypset'; ypset ${nis_ypset_flags} + fi + fi + + echo '.' + network_pass2_done=YES +} + +network_pass3() { + echo -n 'Starting final network daemons:' + + if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then + echo -n ' mountd' + if [ "X${weak_mountd_authentication}" = X"YES" ]; then + mountd_flags="-n" + fi + mountd ${mountd_flags} + if [ "X${nfs_reserved_port_only}" = X"YES" ]; then + echo -n ' nfsprivport=1' + sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1 + fi + echo -n ' nfsd'; nfsd -u -t 4 + if [ "X$rpc_lockd_enable" = X"YES" ]; then + echo -n ' rpc.lockd'; rpc.lockd + fi + if [ "X$rpc_statd_enable" = X"YES" ]; then + echo -n ' rpc.statd'; rpc.statd + fi + fi + + if [ "X${nfs_client_enable}" = X"YES" ]; then + echo -n ' nfsiod'; nfsiod -n 4 + fi + + if [ "X${amd_enable}" = X"YES" ]; then + echo -n ' amd' + amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null + fi + + if [ "X${rwhod_enable}" = X"YES" ]; then + echo -n ' rwhod'; rwhod + fi + + # Kerberos runs ONLY on the Kerberos server machine + if [ "X${kerberos_server_enable}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; kadmind -n >/dev/null 2>&1 &) & + fi + + # IP multicast routing daemon + if [ "X${mrouted_enable}" = X"YES" ]; then + echo -n ' mrouted'; mrouted ${mrouted_flags} + fi + echo '.' + network_pass3_done=YES +} diff --git a/etc/rc.firewall b/etc/rc.firewall index e56760f..71deea3 100644 --- a/etc/rc.firewall +++ b/etc/rc.firewall @@ -1,6 +1,6 @@ ############ # Setup system for firewall service. -# $Id$ +# $Id: rc.firewall,v 1.8 1997/02/23 09:20:47 peter Exp $ ############ # @@ -13,9 +13,6 @@ # machine and ``simple'' will try to protect a whole network (entries should # be customized appropriately below). To let no one in, use NONE. -firewall_type=NONE - - ############ # # If you don't know enough about packet filtering, we suggest that you @@ -55,11 +52,11 @@ firewall_type=NONE # Prototype setups. -if [ "${firewall_type}" = "open" ]; then +if [ "${firewall}" = "open" ]; then /sbin/ipfw add 65000 pass all from any to any -elif [ "${firewall_type}" = "client" ]; then +elif [ "${firewall}" = "client" ]; then ############ # This is a prototype setup that will protect your system somewhat against @@ -97,7 +94,7 @@ elif [ "${firewall_type}" = "client" ]; then # Everyting else is denied as default. -elif [ "${firewall_type}" = "simple" ]; then +elif [ "${firewall}" = "simple" ]; then ############ # This is a prototype setup for a simple firewall. Configure this machine diff --git a/etc/rc.network b/etc/rc.network new file mode 100644 index 0000000..9a9c2c7 --- /dev/null +++ b/etc/rc.network @@ -0,0 +1,207 @@ +#!/bin/sh - +# +# $Id: rc.network,v 1.1.2.1 1997/04/26 22:39:34 jkh Exp $ +# From: @(#)netstart 5.9 (Berkeley) 3/30/91 + +# Note that almost all the user-configurable behavior is no longer in +# this file, but rather in /etc/rc.conf. Please check that file +# first before contemplating any changes here. If you do need to change +# this file for some reason, we would like to know about it. + +# First pass startup stuff. + +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo -n ' hostname' + fi + + # Set the domainname if we're using NIS + if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then + domainname $nisdomainname + echo -n ' domain' + fi + echo '.' + + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} ${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + # Do ipx address if specified + eval ifconfig_args=\$ifconfig_${ifn}_ipx + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} + fi + ifconfig ${ifn} + done + + # If IP filtering + if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then + echo -n ' firewall' + sh /etc/rc.firewall + fi + + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + + echo -n 'Additional routing options:' + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP gateway=1' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + + if [ "X$router_enable" = X"YES" ]; then + echo -n " ${router}"; ${router} ${router_flags} + fi + + if [ "X$ipxgateway_enable" = X"YES" ]; then + echo -n ' IPX gateway=1' + sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 + fi + + if [ "X$ipxrouted_enable" = X"YES" ]; then + echo -n ' IPXrouted: ' + IPXrouted ${ipxrouted_flags} > /dev/null 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + echo -n 'Doing additional network setup:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echon -n ' tcp extentions=0' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X${named_enable}" = X"YES" ]; then + echo -n ' named'; named ${named_flags} + fi + + if [ "X${ntpdate_enable}" = X"YES" -o "X${xntpd_enable}" = X"YES" ]; then + if [ "X${tickadj_enable}" = X"YES" ]; then + echo -n ' tickadj'; tickadj ${tickadj_flags--Aq} + fi + + if [ "X${ntpdate_enable}" = X"YES" ]; then + echo -n ' ntpdate'; ntpdate ${ntpdate_flags} >/dev/null 2>&1 + fi + + if [ "X${xntpd_enable}" = X"YES" ]; then + echo -n ' xntpd'; xntpd ${xntpd_flags} + fi + fi + + if [ "X${timed_enable}" = X"YES" ]; then + echo -n ' timed'; timed ${timed_flags} + fi + + if [ "X${portmap_enable}" = X"YES" ]; then + echo -n ' portmap'; portmap ${portmap_flags} + fi + + # Start ypserv if we're an NIS server. + # Run rpc.ypxfrd and rpc.yppasswdd only on the NIS master server. + if [ "X${nis_server_enable}" = X"YES" ]; then + echo -n ' ypserv'; ypserv ${nis_server_flags} + + if [ "X${nis_ypxfrd_enable}" = X"YES" ]; then + echo -n ' rpc.ypxfrd'; rpc.ypxfrd ${nis_ypxfrd_flags} + fi + + if [ "X${nis_yppasswdd_enable}" = X"YES" ]; then + echo -n ' rpc.yppasswdd'; rpc.yppasswdd ${nis_yppasswdd_flags} + fi + fi + + # Start ypbind if we're an NIS client + if [ "X${nis_client_enable}" = X"YES" ]; then + echo -n ' ypbind'; ypbind ${nis_client_flags} + if [ "X${nis_ypset_enable}" = X"YES" ]; then + echo -n ' ypset'; ypset ${nis_ypset_flags} + fi + fi + + echo '.' + network_pass2_done=YES +} + +network_pass3() { + echo -n 'Starting final network daemons:' + + if [ "X${nfs_server_enable}" = X"YES" -a -r /etc/exports ]; then + echo -n ' mountd' + if [ "X${weak_mountd_authentication}" = X"YES" ]; then + mountd_flags="-n" + fi + mountd ${mountd_flags} + if [ "X${nfs_reserved_port_only}" = X"YES" ]; then + echo -n ' nfsprivport=1' + sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1 + fi + echo -n ' nfsd'; nfsd -u -t 4 + if [ "X$rpc_lockd_enable" = X"YES" ]; then + echo -n ' rpc.lockd'; rpc.lockd + fi + if [ "X$rpc_statd_enable" = X"YES" ]; then + echo -n ' rpc.statd'; rpc.statd + fi + fi + + if [ "X${nfs_client_enable}" = X"YES" ]; then + echo -n ' nfsiod'; nfsiod -n 4 + fi + + if [ "X${amd_enable}" = X"YES" ]; then + echo -n ' amd' + amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null + fi + + if [ "X${rwhod_enable}" = X"YES" ]; then + echo -n ' rwhod'; rwhod + fi + + # Kerberos runs ONLY on the Kerberos server machine + if [ "X${kerberos_server_enable}" = X"YES" ]; then + echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & + echo -n ' kadmind'; \ + (sleep 20; kadmind -n >/dev/null 2>&1 &) & + fi + + # IP multicast routing daemon + if [ "X${mrouted_enable}" = X"YES" ]; then + echo -n ' mrouted'; mrouted ${mrouted_flags} + fi + echo '.' + network_pass3_done=YES +} diff --git a/etc/rc.pccard b/etc/rc.pccard index 341e733..06b4210 100644 --- a/etc/rc.pccard +++ b/etc/rc.pccard @@ -4,17 +4,17 @@ # HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp> # -if [ "x$apm_enable" = "xYES" ] ; then +if [ "X$apm_enable" = X"YES" ] ; then echo "Enable APM BIOS." - /usr/sbin/apmconf -e + apmconf -e fi -if [ "x$pccard_enable" != "xNO" ] ; then +if [ "X$pccard_enable" = X"YES" ] ; then if [ "x$pccard_mem" != "xDEFAULT" ] ; then - /usr/sbin/pccardc pccardmem $pccard_mem + pccardc pccardmem $pccard_mem else - /usr/sbin/pccardc pccardmem 0xd0000 + pccardc pccardmem 0xd0000 fi echo "Enable PC-card." - /usr/sbin/pccardd & + pccardd & fi diff --git a/etc/sysconfig b/etc/sysconfig deleted file mode 100644 index 8f12741..0000000 --- a/etc/sysconfig +++ /dev/null @@ -1,340 +0,0 @@ -#!/bin/sh -# - -# This is sysconfig - a file full of useful variables that you can set -# to change the default startup behavior of your system. -# -# $Id: sysconfig,v 1.63 1997/04/09 20:15:01 guido Exp $ - -######################### Start Of Local Configuration Section ########### - -# Location of local startup directories. -local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" - -######################### End Of Local Configuration Section ############# - -######################### Start Of Syscons Section ####################### - -# Choose keyboard map from /usr/share/syscons/keymaps/* or NO if default. -keymap=NO - -# Set keyboard rate to: slow, normal, fast or NO if default. -keyrate=NO - -# Change function keys default values (or no change if NO) -# Syntax: "<funkey_number> <new_value> [<funkey_number> <new_value>]..." -keychange=NO - -# Desired cursor type {normal|blink|destructive}, NO if no change -cursor=NO - -# Desired bell type {duration.pitch|normal|visual}, NO if no change -keybell=NO - -# Choose screen map from /usr/share/syscons/scrnmaps/* (or NO for none) -scrnmap=NO - -# Choose font 8x16 from /usr/share/syscons/fonts/* (or NO for default) -font8x16=NO - -# Choose font 8x14 from /usr/share/syscons/fonts/* (or NO for default) -font8x14=NO - -# Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default) -font8x8=NO - -# Set blank time (in seconds) or "off" to turn it off (or NO for default) -blanktime=NO - -# Set to screen saver desired: blank, green, snake, star (or NO for none) -saver=NO - -# Set to -# {microsoft|mousesystems|mmseries|logitech|busmouse|mouseman|ps/2|mmhittab} -# to activate system mouse cursor support (or NO for none) -# Use 'vidcontrol -m on' command to activate it on particular screen -# -# If you give mousedtype a value, you must use the /dev/sysmouse device -# (or a link to it) and the MouseSystems protocol under X. -mousedtype=NO - -############## Next block activated only if mousedtype != NO ################ - -# Set to your mouse port (required) -# Use real device here, because /dev/mouse usually linked with /dev/sysmouse -mousedport=/dev/cuaa0 - -# Moused options: -# -s: 9600 baud mouse -# -c: enable ChordMiddle -# see moused usage info for complete options list -mousedflags="" - -######################### End of moused block ############################## - -# General Russian setup for example: -# (koi8-r keyboard with cp866 screen font mapped to koi8-r) -# -# keymap=ru.koi8-r -# keyrate=fast -# keychange="61 [K" -# cursor=destructive -# scrnmap=koi8-r2cp866 -# font8x16=cp866b-8x16 -# font8x14=cp866-8x14 -# font8x8=cp866-8x8 -# blanktime=600 -# saver=snake -# mousedtype=mousesystems -# mousedport=/dev/cuaa0 -# mousedflags="" - -######################### End Of Syscons Section ####################### - -######################### Start Of Netconfig Section ####################### - -# Set to the name of your host - this is pretty important! -hostname=myname.my.domain - -# Set to the NIS domainname of your host, or NO if none -defaultdomainname=NO - -# -# Some broken implementations can't handle the RFC 1323 and RFC 1644 -# TCP options. If TCP connections randomly hang, try disabling this, -# and bug the vendor of the losing equipment. -# -tcp_extensions=YES - -# If you're running PCNFSD or anything else which requires mountd to allow -# non-root requests for NFS mounts, set this to YES. -weak_mountd_authentication=NO - -# -# Set to the list of network devices on this host. You must have an -# ifconfig_${network_interface} line for each interface listed here. -# Extra addresses may be specified with sequentual _alias<N> lines. IPX -# addresses may be specified with an ifconfig_${network_interface}_ipx -# line. -# -# for example: -# -# network_interfaces="ed0 sl0 lo0" -# -# ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" -# ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" -# ifconfig_lo0="inet 127.0.0.1" -# ifconfig_ed0_alias0="inet 10.0.2.1 netmask 0xffffff00" -# ifconfig_ed0_alias1="inet 10.0.2.2 netmask 0xffffffff" -# ifconfig_ed0_ipx="ipx 0x1234" -# -# Alternatively, /etc/start_if.${network_interface} is run if it exists. -# This script can be used as an alternative to the ifconfig_<xxx> lines. -# -network_interfaces="lo0" - -ifconfig_lo0="inet 127.0.0.1" - -# -# Set to the list of route add lines for this host. You must have a -# route_${static_routes} line for each static route listed here (unless -# static_routes is set to "" - do NOT use ``NO'' to denote a lack of static -# routes!). -# -#static_routes="foo multicast" -#route_foo="woofo woofo-gw" -#route_multicast="224.0.0.0 -netmask 0xf0000000 -interface 10.0.0.1" -static_routes="" - -# Set to the host you'd like set as your default router, or NO for none. -# This is the same as adding a ``default'' entry to static_routes. -defaultrouter=NO - -# This is the routing daemon you want to use. Possible options are -# currently NO (for none), `routed' and `gated'. Also see `routerflags' -# for startup flags. -router=routed - -# These are the flags you'd like to start the routing daemon with -routerflags=-q - -# mrouted flags, or NO if you don't want to start mrouted. Needs kernel -# options enabled before it will work. -mrouted=NO - -# YES will switch routing on in the kernel. You need to switch this on -# if this machine has to act as a IPX router. You need to build a -# kernel with IPX support for this to work. -ipxgateway=NO - -# IPXrouted flags. NO if you don't want to start it. Do "man IPXrouted" -# to get more information on the flags. -ipxrouted=NO - -# timed flags, or NO if you don't want to start the time daemon -timedflags=NO - -# portmap flags, or NO if you don't want to start the portmap daemon -portmapflags="" - -# xntpd flags, or NO if you don't want to start the xntpd daemon -xntpdflags="NO" - -# this is inoperative unless xntpd is enabled; NO to disable -tickadjflags="-Aq" - -# Set to the site you'd like to synchronize your clock from (gatekeeper.dec.com, -# for example) or NO for no such site. -ntpdate="NO" - -# Set to YES if you want to run rwhod -rwhod=NO - -# Set to NO if don't want to run lpd -lpd=YES - -# Default sendmail flags. -bd is pretty mandatory, -q<n>m sets the queue scan -# time in minutes. If set to NO, don't start sendmail at all. -sendmail_flags="-bd -q30m" - -# Set to appropriate flags if you want to use AMD. The commented-out entry -# provides a reasonable default, using the sample amd.map config file from the -# /usr/src/etc directory. -amdflags="NO" -#amdflags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map" - -# Set to YES if this machine will be an NFS client -nfs_client=NO - -# Set to YES if this machine will be an NFS server -nfs_server=NO - -# the following option controls if the nfs server will be only allow -# requests from reserved ports. NB: running mountd with -# weak_mountd_authentication=YES will automatically clear this flag. -# See also mountd(8) -nfs_reserved_port_only=NO - -# Set to appropriate flags if you want to start NIS for a client -nis_clientflags="NO" - -# Name of host to ypset to, if no YP server on this wire -nis_ypsetflags="NO" - -# Set to appropriate flags if you want to start NIS for a server -nis_serverflags="NO" - -# Set to appropriate flags for rpc.ypxfrd. This should only be -# run on NIS master servers. -ypxfrdflags="NO" - -# Set to appropriate flags for rpc.yppasswdd. This should only be -# run on NIS master servers. -# Typical flags might be "-t /var/yp/master.passwd -s -f" -yppasswddflags="NO" - -# syslogd flags, or NO if you don't want to start the syslog daemon -syslogdflags="" - -# Set to appropriate flags for named, if you have a full-time -# connection to the Internet. -# For most hosts, flags should be "-b /etc/namedb/named.boot" -namedflags="NO" - -# Set to YES if you want to run the X-10 power controller daemon -xtend=NO - -# Set to the name of the device for kernel crashdumps, or `off' to -# disable any statically configured dumpdev, or NO for no change. -# The device should normally be one of the swap devices specified -# in /etc/fstab. -dumpdev=NO - -# Set to an additional swapfile you'd like to have added to preallocated swap -# space during system boot (or NO for none). -swapfile=NO - -# Set to YES if you want to run Kerberos authentication -kerberos_server=NO - -# If you want this host to be a gateway, set to YES. -gateway=NO - -# If you want this host to be a firewall or otherwise filter IP, set to YES. -firewall=NO - -# Set to YES if you wish to check quotas. -check_quotas=NO - -# Set to YES to turn on accounting. -accounting=NO - -######################### End Of Netconfig Section ####################### - -######################### Start Of PC-card Section ####################### - -# If you want to enable APM BIOS driver, set to YES -# (The APM BIOS driver is not configured into GENERIC kernel b/c of bugs) -apm_enable=NO - -# If you want to use PC-card package, set to YES -# (PC-card support is not configured in the GENERIC kernel) -pccard_enable=NO - -# If you want to specify the address of memory used by PCIC, -# set this address (DEFAULT=0xd0000) -pccard_mem=DEFAULT - -# If you want to use Etnerent PCMCIA cards, specify the ifconfig portion -# here. (card-specific flags like connector selection should be written in -# the card-specific entry in /etc/pccard.conf). Set to DHCP if you want to -# use a DHCP server to determine your IP address. If you want to use DHCP -# please install Wide-DHCP client from ports/packages collection (this -# package requires you to configure and setup BPF (Berkeley Packet Filter) -# in your kernel. -# -# Set to NO if you don't want to configure your PC-CARD ethernet controller. -# -# for example: -# -# pccard_ifconfig="131.113.32.126 netmask 0xffffff00" -# or -# pccard_ifconfig="DHCP" -# -pccard_ifconfig=NO - -######################### End Of PC-card Section ####################### - -######################### Start Of Misc Section ####################### - -# Set to YES if you want ibcs2 (SCO) emulation loaded at startup -ibcs2=NO - -# Set to YES if you want Linux a.out emulation loaded at startup -linux=NO - -# Set to a string representing the interrupts you are going to use -# for generating entropy in the kernel (or NO to ignore). -# If the machine is networked, the Ethernet card IRQ is good. -# The IRQ on an intelligent hard disk controller is good. -# The IRQ's on most sound devices are good. -# -# The following choices are BAD: -# The IRQ's on COM-ports (SIO devices), the IRQ used by a "classic" -# IDE disk or cdrom (Intelligent controllers seem to be OK), and -# the IRQ on the system clock. -# -# Experiment with the rest. The best interrupts are the ones that -# happen fairly irregularly, and never occur in very high-speed bursts. -# -# You'll have it right when you have a good supply of numbers from -# /dev/random, and no problems on your system, like slowdowns, -# Sluggish net/disk activity, perhaps even errors. - -# For example - if you have a sound blaster on IRQ5, an ethernet card -# on IRQ10 and a SCSI controller on IRQ11 (eg ADAPTEC 1542) you might -# try this: -# -# rand_irqs="-s 5 -s 10 -s 11" - -rand_irqs="NO" |