From d27655c908b908e959687cbe31342c675ab6c043 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 16 Oct 2009 12:04:20 +0100 Subject: Add domainname to the network script --- init.d/network.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'init.d/network.in') diff --git a/init.d/network.in b/init.d/network.in index 8233cc4f..5e609633 100644 --- a/init.d/network.in +++ b/init.d/network.in @@ -173,6 +173,16 @@ runargs() start() { 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" routeflush if [ "$RC_UNAME" = "Linux" ]; then -- cgit v1.2.3