mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
17936913ce
1) ypserv is started with nis_serverflags, not yppasswddflags (that's what I get for cutting & pasting without paying attention). 2) ypbind can also be started with arguments, so turn nis_client to nis_clientflags.
66 lines
1.5 KiB
Bash
Executable File
66 lines
1.5 KiB
Bash
Executable File
#!/bin/sh -
|
|
#
|
|
# $Id: netstart,v 1.19 1995/02/07 20:52:35 ats Exp $
|
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
|
|
|
defaultrouter=NO
|
|
routedflags=-q
|
|
timedflags=NO
|
|
xntpdflags="NO"
|
|
ntpdate="NO"
|
|
rwhod=NO
|
|
sendmail_flags="-bd -q30m"
|
|
amdflags="NO"
|
|
nfs_client=NO
|
|
nfs_server=NO
|
|
nis_clientflags="NO"
|
|
nis_serverflags="NO"
|
|
yppasswddflags="NO"
|
|
#yppasswddflags"-m /var/yp/master.passwd -s -f"
|
|
name_server=NO
|
|
savecore=NO
|
|
#kerberos_server=YES
|
|
#gated=YES
|
|
|
|
# my-name is my symbolic name
|
|
# my-netmask is specified in /etc/networks
|
|
#
|
|
if [ -z "`hostname -s`" ] ; then
|
|
hostname=`cat /etc/myname`
|
|
hostname $hostname
|
|
fi
|
|
|
|
# Set the domainname if we're using NIS
|
|
if [ -z "`domainname`" -a -e "/etc/defaultdomain" ] ; then
|
|
domainname=`cat /etc/defaultdomain`
|
|
domainname $domainname
|
|
fi
|
|
|
|
for i in /etc/hostname.*
|
|
do
|
|
ifn=`expr $i : '/etc/hostname\.\(.*\)'`
|
|
if [ -e /etc/hostname.$ifn ]; then
|
|
if [ -e /etc/start_if.$ifn ]; then
|
|
sh /etc/start_if.$ifn $ifn
|
|
fi
|
|
ifconfig $ifn `cat /etc/hostname.$ifn`
|
|
ifconfig $ifn
|
|
fi
|
|
done
|
|
|
|
# set the address for the loopback interface
|
|
ifconfig lo0 inet localhost
|
|
|
|
# set interface for multicasts to default interface
|
|
# this needs to happen before router discovery
|
|
route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname
|
|
|
|
if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
|
|
route add default $defaultrouter
|
|
elif [ -f /etc/defaultrouter ] ; then
|
|
route add default `cat /etc/defaultrouter`
|
|
fi
|
|
|
|
# use loopback, not the wire
|
|
# route add $hostname localhost
|