diff options
| author | se146197 <none@none> | 2005-06-24 08:15:51 -0700 |
|---|---|---|
| committer | se146197 <none@none> | 2005-06-24 08:15:51 -0700 |
| commit | 0659b2b8dfece13bd73f06623d6e8fdbf699c68e (patch) | |
| tree | 37854103dfae193069edccc2490184f37e9e1e3c /usr/src/cmd | |
| parent | 6d44af1bfb7a503751cfa006d188095441aeeea4 (diff) | |
| download | illumos-joyent-0659b2b8dfece13bd73f06623d6e8fdbf699c68e.tar.gz | |
5062168 network/physical unconditionally tries to configure all interfaces
Diffstat (limited to 'usr/src/cmd')
| -rw-r--r-- | usr/src/cmd/svc/milestone/net-physical | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/src/cmd/svc/milestone/net-physical b/usr/src/cmd/svc/milestone/net-physical index 4498762949..73775643be 100644 --- a/usr/src/cmd/svc/milestone/net-physical +++ b/usr/src/cmd/svc/milestone/net-physical @@ -286,8 +286,13 @@ if [ "$interface_names" != '/etc/dhcp.*[0-9]' ]; then [ -n "$i4d_fail" ] && warn_failed_ifs "configure IPv4 DHCP" $i4d_fail fi -# Configure the rest of the IPv4 interfaces automatically, quietly. -/sbin/ifconfig -adD4 auto-revarp netmask + broadcast + up +# In order to avoid bringing up the interfaces that have +# intentionally been left down, perform RARP only if the system +# has no configured hostname in /etc/nodename +hostname="`shcat /etc/nodename 2>/dev/null`" +if [ "$_INIT_NET_STRATEGY" = "rarp" -o -z "$hostname" ]; then + /sbin/ifconfig -adD4 auto-revarp netmask + broadcast + up +fi # # Process IPv4 and IPv6 interfaces that failed to plumb. Find an |
