summaryrefslogtreecommitdiff
path: root/net-physical
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-05-15 09:01:09 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-05-15 09:01:09 +0400
commiteea56f7966696f201f576a558724ab6343965b86 (patch)
treeea19f30b84e1d729c4444e700b6cbb53d3410682 /net-physical
parent33f2624dc08487afa53565352bc5c09282c9a90a (diff)
downloadlive-eea56f7966696f201f576a558724ab6343965b86.tar.gz
Try harder to setup DHCP even if link status is unknown
Diffstat (limited to 'net-physical')
-rwxr-xr-xnet-physical2
1 files changed, 1 insertions, 1 deletions
diff --git a/net-physical b/net-physical
index 6b5ac20..de167c1 100755
--- a/net-physical
+++ b/net-physical
@@ -7,7 +7,7 @@ for link in $links; do
if ipadm "create-if" $link; then # create-if is in quotes because ViM goes crazy
timeout=30
state=`dladm show-phys -p -o state $link`
- if [ "$state" != up ]; then
+ if [ "$state" == down ]; then
# http://slackware.com/~alien/rc_scripts/rc.inet1
timeout=7
fi