diff options
author | Christian Heim <phreak@gentoo.org> | 2005-11-05 06:31:33 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2005-11-05 06:31:33 +0000 |
commit | c19e259b2b3334adde61c3db89774b9db41b8704 (patch) | |
tree | d6aa04fd4bd07e9bb83abae6d63f7cb9c7b82c2f /init.d/domainname | |
parent | Merging changes from baselayout 1583 (diff) | |
download | baselayout-vserver-c19e259b2b3334adde61c3db89774b9db41b8704.tar.gz baselayout-vserver-c19e259b2b3334adde61c3db89774b9db41b8704.tar.bz2 baselayout-vserver-c19e259b2b3334adde61c3db89774b9db41b8704.zip |
Merging changes between baselayout r1583 and r1596.
svn path=/baselayout-vserver/trunk/; revision=64
Diffstat (limited to 'init.d/domainname')
-rwxr-xr-x | init.d/domainname | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/init.d/domainname b/init.d/domainname index 07bd4f7..619ad38 100755 --- a/init.d/domainname +++ b/init.d/domainname @@ -32,12 +32,15 @@ checkconfig_dns() { } start() { + # Ensure that we have a hostname binary or function + source /lib/rcscripts/net.modules.d/helpers.d/functions + local retval=0 local retval2=0 if checkconfig_nis ; then ebegin "Setting NIS domainname to ${NISDOMAIN}" - /bin/domainname "${NISDOMAIN}" + hostname -y "${NISDOMAIN}" retval=$? eend ${retval} "Failed to set the NIS domainname" fi |