summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/network.subr8
-rw-r--r--etc/rc.d/network18
2 files changed, 12 insertions, 4 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 7981858..4e08b9f 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -113,10 +113,14 @@ network_start()
# Set the domainname if we're using NIS
#
- if checkyesno nisdomainname ; then
+ case ${nisdomainname} in
+ [Nn][Oo]|'')
+ ;;
+ *)
domainname ${nisdomainname}
echo -n ' domain'
- fi
+ ;;
+ esac
echo '.'
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index 7981858..4e08b9f 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -113,10 +113,14 @@ network_start()
# Set the domainname if we're using NIS
#
- if checkyesno nisdomainname ; then
+ case ${nisdomainname} in
+ [Nn][Oo]|'')
+ ;;
+ *)
domainname ${nisdomainname}
echo -n ' domain'
- fi
+ ;;
+ esac
echo '.'
OpenPOWER on IntegriCloud