Don't set hostname if we already have it. (diskless).
This commit is contained in:
parent
66da596420
commit
e9362258de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4101
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user