version 1.51, 1997/10/15 16:28:29 |
version 1.52, 1997/11/04 08:39:33 |
|
|
echo 'disabling rfc1323'; sysctl -w net.inet.tcp.rfc1323=0 |
echo 'disabling rfc1323'; sysctl -w net.inet.tcp.rfc1323=0 |
fi |
fi |
|
|
# $photurisd_flags is imported from /etc/netstart; |
# $photurisd_flags is imported from /etc/rc.conf; |
# If $photurisd_flags == NO or /etc/photuris/photuris.conf doesn't exist, then |
# If $photurisd_flags == NO or /etc/photuris/photuris.conf doesn't exist, then |
# photurisd isn't run. |
# photurisd isn't run. |
if [ "X${photurisd_flags}" != X"NO" -a -e /etc/photuris/photuris.conf ]; then |
if [ "X${photurisd_flags}" != X"NO" -a -e /etc/photuris/photuris.conf ]; then |
|
|
|
|
echo -n 'starting rpc daemons:' |
echo -n 'starting rpc daemons:' |
|
|
# $portmap is imported from /etc/netstart; |
# $portmap is imported from /etc/rc.conf; |
# if $portmap == YES, the portmapper is started. |
# if $portmap == YES, the portmapper is started. |
if [ X"${portmap}" = X"YES" ]; then |
if [ X"${portmap}" = X"YES" ]; then |
echo -n ' portmap'; portmap |
echo -n ' portmap'; portmap |
|
|
fi |
fi |
fi |
fi |
|
|
# $nfs_server is imported from /etc/netstart; |
# $nfs_server is imported from /etc/rc.conf; |
# if $nfs_server == YES, the machine is setup for being an nfs server |
# if $nfs_server == YES, the machine is setup for being an nfs server |
if [ X${nfs_server} = X"YES" -a -r /etc/exports -a \ |
if [ X${nfs_server} = X"YES" -a -r /etc/exports -a \ |
`cat /etc/exports | sed -e '/^#/d' | wc -l` -ne 0 ]; then |
`cat /etc/exports | sed -e '/^#/d' | wc -l` -ne 0 ]; then |
|
|
fi |
fi |
fi |
fi |
|
|
# $nfs_client is imported from /etc/netstart; |
# $nfs_client is imported from /etc/rc.conf; |
# if $nfs_client == YES, the machine is setup for being an nfs client |
# if $nfs_client == YES, the machine is setup for being an nfs client |
if [ X${nfs_client} = X"YES" ]; then |
if [ X${nfs_client} = X"YES" ]; then |
echo -n ' nfsiod'; nfsiod -n 4 |
echo -n ' nfsiod'; nfsiod -n 4 |
|
|
rm -f /dev/log |
rm -f /dev/log |
syslogd |
syslogd |
|
|
# $timed_flags is imported from /etc/netstart; |
# $timed_flags is imported from /etc/rc.conf; |
# if $timed_flags == NO, timed isn't run. |
# if $timed_flags == NO, timed isn't run. |
if [ "X${timed_flags}" != X"NO" ]; then |
if [ "X${timed_flags}" != X"NO" ]; then |
echo -n ', time daemon'; timed $timed_flags |
echo -n ', time daemon'; timed $timed_flags |
|
|
|
|
echo -n starting network daemons: |
echo -n starting network daemons: |
|
|
# $gated and $routed_flags are imported from /etc/netstart. |
# $gated and $routed_flags are imported from /etc/rc.conf. |
# If $gated == YES, gated is used; otherwise routed. |
# If $gated == YES, gated is used; otherwise routed. |
# If $routed_flags == NO, routed isn't run. |
# If $routed_flags == NO, routed isn't run. |
if [ X${gated} = X"YES" -a -r /etc/gated.conf ]; then |
if [ X${gated} = X"YES" -a -r /etc/gated.conf ]; then |
|
|
echo -n ' routed'; routed $routed_flags |
echo -n ' routed'; routed $routed_flags |
fi |
fi |
|
|
# $mrouted_flags is imported from /etc/netstart; |
# $mrouted_flags is imported from /etc/rc.conf; |
# If $mrouted_flags == NO, then mrouted isn't run. |
# If $mrouted_flags == NO, then mrouted isn't run. |
if [ "X${mrouted_flags}" != X"NO" ]; then |
if [ "X${mrouted_flags}" != X"NO" ]; then |
echo -n ' mrouted'; mrouted $mrouted_flags |
echo -n ' mrouted'; mrouted $mrouted_flags |
fi |
fi |
|
|
# $named_flags is imported from /etc/netstart; |
# $named_flags is imported from /etc/rc.conf; |
# if $named_flags != NO, named is run. |
# if $named_flags != NO, named is run. |
if [ "X${named_flags}" != X"NO" ]; then |
if [ "X${named_flags}" != X"NO" ]; then |
echo -n ' named'; named $named_flags |
echo -n ' named'; named $named_flags |
fi |
fi |
mount -a -t nfs # do again, in case DNS hostnames are used.. |
mount -a -t nfs # do again, in case DNS hostnames are used.. |
|
|
# $rwhod is imported from /etc/netstart; |
# $rwhod is imported from /etc/rc.conf; |
# if $rwhod == YES, rwhod is run. |
# if $rwhod == YES, rwhod is run. |
if [ X${rwhod} = X"YES" ]; then |
if [ X${rwhod} = X"YES" ]; then |
echo -n ' rwhod'; rwhod |
echo -n ' rwhod'; rwhod |
|
|
echo -n ' printer'; lpd |
echo -n ' printer'; lpd |
fi |
fi |
|
|
# $sendmail_flags is imported from /etc/netstart; |
# $sendmail_flags is imported from /etc/rc.conf; |
# If $sendmail_flags == NO or /etc/sendmail.cf doesn't exist, then |
# If $sendmail_flags == NO or /etc/sendmail.cf doesn't exist, then |
# sendmail isn't run. We call sendmail with a full path so that |
# sendmail isn't run. We call sendmail with a full path so that |
# SIGHUP works. |
# SIGHUP works. |
|
|
echo -n ' inetd'; inetd |
echo -n ' inetd'; inetd |
fi |
fi |
|
|
# $rarpd_flags is imported from /etc/netstart; |
# $rarpd_flags is imported from /etc/rc.conf; |
# If $rarpd_flags == NO or /etc/ethers doesn't exist, then |
# If $rarpd_flags == NO or /etc/ethers doesn't exist, then |
# rarpd isn't run. |
# rarpd isn't run. |
if [ "X${rarpd_flags}" != X"NO" -a -r /etc/ethers ]; then |
if [ "X${rarpd_flags}" != X"NO" -a -r /etc/ethers ]; then |
echo -n ' rarpd'; rarpd ${rarpd_flags} |
echo -n ' rarpd'; rarpd ${rarpd_flags} |
fi |
fi |
|
|
# $bootparamd_flags is imported from /etc/netstart; |
# $bootparamd_flags is imported from /etc/rc.conf; |
# If $bootparamd_flags == NO or /etc/bootparams doesn't exist, then |
# If $bootparamd_flags == NO or /etc/bootparams doesn't exist, then |
# bootparamd isn't run. |
# bootparamd isn't run. |
if [ "X${bootparamd_flags}" != X"NO" -a -r /etc/bootparams ]; then |
if [ "X${bootparamd_flags}" != X"NO" -a -r /etc/bootparams ]; then |
echo -n ' rpc.bootparamd'; rpc.bootparamd ${bootparamd_flags} |
echo -n ' rpc.bootparamd'; rpc.bootparamd ${bootparamd_flags} |
fi |
fi |
|
|
# $rbootd_flags is imported from /etc/netstart; |
# $rbootd_flags is imported from /etc/rc.conf; |
# If $rbootd_flags == NO or /etc/rbootd.conf doesn't exist, then |
# If $rbootd_flags == NO or /etc/rbootd.conf doesn't exist, then |
# rbootd isn't run. |
# rbootd isn't run. |
if [ "X${rbootd_flags}" != X"NO" -a -r /etc/rbootd.conf ]; then |
if [ "X${rbootd_flags}" != X"NO" -a -r /etc/rbootd.conf ]; then |