diff options
author | phk <phk@FreeBSD.org> | 1994-11-02 23:50:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-11-02 23:50:54 +0000 |
commit | 39af2a53f02ae49a3eff9608803018f8c05d34ee (patch) | |
tree | f3c2cbb50e4b1e6656662cf7e19789fc0a04cd81 /etc | |
parent | b7d81897fe3648470cf13c1886566de0e9861739 (diff) | |
download | FreeBSD-src-39af2a53f02ae49a3eff9608803018f8c05d34ee.zip FreeBSD-src-39af2a53f02ae49a3eff9608803018f8c05d34ee.tar.gz |
Don't set hostname if we already have it. (diskless).
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/netstart | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/netstart b/etc/netstart index abad5f8..bdc2119 100755 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: netstart,v 1.14 1994/09/29 17:27:45 pst Exp $ +# $Id: netstart,v 1.15 1994/10/06 20:52:00 pst Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 defaultrouter=NO @@ -20,8 +20,10 @@ name_server=NO # my-name is my symbolic name # my-netmask is specified in /etc/networks # -hostname=`cat /etc/myname` -hostname $hostname +if [ -z "`hostname -s`" ] ; then + hostname=`cat /etc/myname` + hostname $hostname +fi for i in /etc/hostname.* do |