Add domainname to the network script
This commit is contained in:
parent
9f4a7afd83
commit
d27655c908
@ -26,3 +26,5 @@
|
|||||||
# If you require DHCP, you should install dhcpcd and it to the boot or
|
# If you require DHCP, you should install dhcpcd and it to the boot or
|
||||||
# default runlevel.
|
# default runlevel.
|
||||||
|
|
||||||
|
# NIS users can set the domain name here
|
||||||
|
#domainname="foobar"
|
||||||
|
@ -173,6 +173,16 @@ runargs()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
local cr=0 r= int= intv= cmd= args= upcmd=
|
local cr=0 r= int= intv= cmd= args= upcmd=
|
||||||
|
|
||||||
|
if [ -z "$domainname" && -s /etc/defaultdomain ]; then
|
||||||
|
domainname=$(cat /etc/defaultdomain)
|
||||||
|
fi
|
||||||
|
if [ -n "$domainname" ]; then
|
||||||
|
ebegin "Setting NIS domainname: $domainname"
|
||||||
|
domainname "$domainname"
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
|
||||||
einfo "Starting network"
|
einfo "Starting network"
|
||||||
routeflush
|
routeflush
|
||||||
if [ "$RC_UNAME" = "Linux" ]; then
|
if [ "$RC_UNAME" = "Linux" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user