From 389669f687888ddffae968d3be0e3b802d3305c1 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Thu, 14 Aug 2014 16:32:50 -0400 Subject: [PATCH] Formatting fixes for dhcp-all-interfaces Fixup some whitespace formatting issues in dhcp-all-interfaces.sh Change-Id: Iac515f53e76e68356826cbcefb64142b2009f351 --- .../dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh b/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh index be563d4db..c09bbbd36 100755 --- a/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh +++ b/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh @@ -65,9 +65,9 @@ function inspect_interface() { echo -n "Inspecting interface: $interface..." if config_exists $interface; then echo "Has config, skipping." - elif [ "$mac_addr_type" != "0" ]; then + elif [ "$mac_addr_type" != "0" ]; then echo "Device has generated MAC, skipping." - else + else ip link set dev $interface up &>/dev/null HAS_LINK="$(get_if_link $interface)" @@ -79,7 +79,7 @@ function inspect_interface() { else sleep 1 fi - TRIES=$(( TRIES - 1 )) + TRIES=$(( TRIES - 1 )) done if [ "$HAS_LINK" == "1" ] ; then enable_interface "$interface"