Another 2 small commits.

Cheers,

-- 
Cristian
commit 2382e556e8fce59e20f8c5ba4075fc04a4123399
Author: Cristian Ionescu-Idbohrn <c...@axis.com>
Date:   Sun Sep 18 10:38:20 2011 +0200

    Removed superfluous quote escapes.
    
    Signed-off-by: Cristian Ionescu-Idbohrn <c...@axis.com>

diff --git a/if-up-scripts/check-network-cable b/if-up-scripts/check-network-cable
index 3f2276e..a0236b6 100755
--- a/if-up-scripts/check-network-cable
+++ b/if-up-scripts/check-network-cable
@@ -64,7 +64,7 @@ check_status_miitool() {
 check_status_ethtool() {
 	local status=0 LINK
 
-	LINK=$($ETHTOOL $IFACE 2>&1 | grep \"Link detected\" || :)
+	LINK=$($ETHTOOL $IFACE 2>&1 | grep "Link detected" || :)
 	# If ethtool fails to print out the link line we break off
 	# notice that ethtool cannot get the link status out of all
 	# possible network interfaces
@@ -78,7 +78,7 @@ check_status_iplink() {
 
 	# FIXME: is this test really needed? The package depends on iproute!
 	[ -x $ip_app ] || return $status
-	info=$($ip_app link show $IFACE 2>&1 | grep \"$IFACE:\")
+	info=$($ip_app link show $IFACE 2>&1 | grep "$IFACE:")
 	! echo $info | grep -q NO-CARRIER &&
 	! echo $info | grep -q "state DOWN" &&
 	! echo $info | grep -q "state LOWERLAYERDOWN" || status=1
commit 183248eed49b057c777a5bf0170543c7c75678ff
Author: Cristian Ionescu-Idbohrn <c...@axis.com>
Date:   Sun Sep 18 10:41:17 2011 +0200

    Declared another local variable.
    
    Signed-off-by: Cristian Ionescu-Idbohrn <c...@axis.com>

diff --git a/if-up-scripts/check-network-cable b/if-up-scripts/check-network-cable
index a0236b6..22d41e9 100755
--- a/if-up-scripts/check-network-cable
+++ b/if-up-scripts/check-network-cable
@@ -111,7 +111,7 @@ check_status() {
 }
 
 check_bond_status() {
-	local status=1 slaves
+	local status=1 slaves slave_iface
 
 	slaves=/sys/class/net/$IFACE/bonding/slaves
 

Reply via email to