5
# sample command file which can be invoked from dhcpcd
6
# This script derived from "rc.inet2"
8
# Author: Yoichi Hariguchi <yoichi@fore.com>
14
# make configuration files for DNS and NTP
15
for serv in resolv ntp ; do
16
if [ -f /etc/dhcpc/${serv}.conf ]; then
17
if [ -L /etc/${serv}.conf ]; then
18
rm -f /etc/${serv}.conf
19
elif [ -f /etc/${serv}.conf ]; then
20
mv /etc/${serv}.conf /etc/${serv}.conf.ORG
22
ln -s /etc/dhcpc/${serv}.conf /etc
26
# Start the INET SuperServer
27
if [ -f ${NET}/inetd ]; then
34
# # Start the NAMED/BIND name server.
35
# if [ -f ${NET}/named ]; then
39
# Start the ROUTEd server.
40
if [ -f ${NET}/routed ]; then
44
# Start the various INET servers.
45
for server in ${IN_SERV} ; do
46
if [ -f ${NET}/${server} ]; then
51
# Start the various SUN RPC servers.
53
if [ -f ${NET}/rpc.portmap ]; then
56
# Start the NFS server daemons.
57
if [ -f ${NET}/rpc.mountd ]; then
60
# if [ -f ${NET}/rpc.nfsd ]; then
64
# # Fire up the PC-NFS daemon(s).
65
# if [ -f ${NET}/rpc.pcnfsd ]; then
67
# ${NET}/rpc.pcnfsd ${LPSPOOL}
69
# if [ -f ${NET}/rpc.bwnfsd ]; then
71
# ${NET}/rpc.bwnfsd ${LPSPOOL}
73
fi # Done starting various SUN RPC servers.
77
# # (NOTE: For detailed information about setting up NIS, see the
78
# # documentation in /usr/doc/yp-clients* and /usr/doc/ypserv*.)
80
# if [ -z "$NISDOMAINNAME" ] ; then
81
# domainname-yp `cat /etc/nisdomainname`
83
# # Then, we start up ypbind. It will use broadcast to find a server.
84
# if [ -d /var/yp ] ; then
88
# if you just 'exit' and do not issue 'exec trure', this process does not
89
# finish (I do not know why :p)