Commit fb3d6f46 authored by Russ Fish's avatar Russ Fish

Micro bug-fix in os_ifconfig_line NIC setup retry checking.

parent 4ce9c421
......@@ -311,9 +311,9 @@ sub os_ifconfig_line($$$$$$$;$$%)
$uplines .= qq{\n #================================\n };
$uplines .= qq{echo "Enabling $iface on $inet"\n };
#
# Re-enable device if necessary (getmac Transport is "Disconnected".)
# Re-enable device if necessary (getmac Transport is "Media disconnected".)
my $test = qq[getmac /v /fo csv | awk -F, '/^"$iface"/{print \$4}'];
$uplines .= qq{if [ \`$test\` = '"Disconnected"' ]; then\n };
$uplines .= qq{if [ \`$test\` = '"Media disconnected"' ]; then\n };
$uplines .= " $DEVCON enable '$dev_map{$iface}'\n ";
$uplines .= qq{ sleep 5\n };
$uplines .= qq{fi\n };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment