summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/network1
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/network1')
-rw-r--r--etc/rc.d/network18
1 files changed, 6 insertions, 2 deletions
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