Merge "Formatting fixes for dhcp-all-interfaces"

This commit is contained in:
Jenkins 2014-09-05 03:28:52 +00:00 committed by Gerrit Code Review
commit d78421642b

View file

@ -65,9 +65,9 @@ function inspect_interface() {
echo -n "Inspecting interface: $interface..." echo -n "Inspecting interface: $interface..."
if config_exists $interface; then if config_exists $interface; then
echo "Has config, skipping." echo "Has config, skipping."
elif [ "$mac_addr_type" != "0" ]; then elif [ "$mac_addr_type" != "0" ]; then
echo "Device has generated MAC, skipping." echo "Device has generated MAC, skipping."
else else
ip link set dev $interface up &>/dev/null ip link set dev $interface up &>/dev/null
HAS_LINK="$(get_if_link $interface)" HAS_LINK="$(get_if_link $interface)"
@ -79,7 +79,7 @@ function inspect_interface() {
else else
sleep 1 sleep 1
fi fi
TRIES=$(( TRIES - 1 )) TRIES=$(( TRIES - 1 ))
done done
if [ "$HAS_LINK" == "1" ] ; then if [ "$HAS_LINK" == "1" ] ; then
enable_interface "$interface" enable_interface "$interface"