]> git.pld-linux.org Git - packages/lxd.git/commitdiff
- use 'ip link show up'
authormis <mis@pld-linux.org>
Mon, 22 Aug 2016 16:28:23 +0000 (18:28 +0200)
committermis <mis@pld-linux.org>
Mon, 22 Aug 2016 16:28:23 +0000 (18:28 +0200)
lxd.init
lxdbr.init

index b24b72d769d2c0f0862dcad25837434540b7bd84..2bf5fa4e578ad5f55fba1d7e3b72b2b320c461d4 100755 (executable)
--- a/lxd.init
+++ b/lxd.init
@@ -38,7 +38,7 @@ start() {
        fi
 
        if [ -n "$BRIDGE_DEV" ]; then
-               if ! ip link show $BRIDGE_DEV 2>/dev/null | grep -q ",UP,"; then
+               if ! ip link show $BRIDGE_DEV up 2>/dev/null | grep -q $BRIDGE_DEV; then
                        nls "lxd bridge %s is down, start lxdbr service first" "$BRIDGE_DEV"
                        RETVAL=1
                        return
index b07e748e9b8c2c0e157fc33d07ba110e51521753..93a34fcde885986c7b6472eec74c3c939513dbdd 100755 (executable)
@@ -29,7 +29,7 @@ if [ -z "$BRIDGE_DEV" -o -z "$BRIDGE_IPADDR" ]; then
 fi
 
 is_bridge_up() {
-       ip link show $BRIDGE_DEV 2>/dev/null | grep -q ",UP"
+       ip link show $BRIDGE_DEV up 2>/dev/null | grep -q $BRIDGE_DEV
 }
 
 start() {
This page took 0.078333 seconds and 4 git commands to generate.