Add $defaultdomainname to sysconfig and use it in netstart to set the
domainname. This eliminates /etc/defaultdomain. Correct tickadj, it should have been tickadjflags.
This commit is contained in:
parent
1c491c8eb8
commit
28f1950b10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8052
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: netstart,v 1.27 1995/04/11 01:22:15 rgrimes Exp $
|
||||
# $Id: netstart,v 1.28 1995/04/12 16:58:06 ache Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# If there is a global system configuration file, suck it in.
|
||||
@ -14,9 +14,8 @@ if [ -z "`hostname -s`" ] ; then
|
||||
fi
|
||||
|
||||
# Set the domainname if we're using NIS
|
||||
if [ -z "`domainname`" -a -e "/etc/defaultdomain" ] ; then
|
||||
domainname=`cat /etc/defaultdomain`
|
||||
domainname $domainname
|
||||
if [ -n "$defaultdomainname" -a "x$defaultdomainname" != "xNO" ] ; then
|
||||
domainname $defaultdomainname
|
||||
fi
|
||||
|
||||
# Set up all the network interfaces, calling startup scripts if needed
|
||||
|
@ -4,7 +4,7 @@
|
||||
# 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.9 1995/04/04 17:34:40 ache Exp $
|
||||
# $Id: sysconfig,v 1.10 1995/04/11 01:22:24 rgrimes Exp $
|
||||
|
||||
######################### Start Of Syscons Section #######################
|
||||
|
||||
@ -60,6 +60,9 @@ saver=NO
|
||||
# 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
|
||||
|
||||
# Set to the list of network devices on this host. You must have an
|
||||
# ifconfig_${network_interface} line for each interface listed here.
|
||||
# for example:
|
||||
@ -81,7 +84,9 @@ timedflags=NO
|
||||
|
||||
# xntpd flags, or NO if you don't want to start the xntpd daemon
|
||||
xntpdflags="NO"
|
||||
tickadj="-Aq" # this is inoperative unless xntpd is enabled; NO to disable
|
||||
|
||||
# this is inoperative unless xntpd is enabled; NO to disable
|
||||
tickadjflags="-Aq"
|
||||
|
||||
# Set to the site you'd like to syncronize your clock from (gatekeeper.dec.com,
|
||||
# for example) or NO for no such site.
|
||||
|
Loading…
Reference in New Issue
Block a user