X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-bridge;h=c74c8cc3e42e6d3179721327752c9d2d03bc2bf7;hb=2ceeb1f13e6dd0f6efffef9568ee6449135911e6;hp=c7decc7037b6455c78e5141d7f1bbd767adcfc01;hpb=d9b20539ba8824abdf7a72c73f45f4e940d61e60;p=grml-network.git diff --git a/sbin/grml-bridge b/sbin/grml-bridge index c7decc7..c74c8cc 100755 --- a/sbin/grml-bridge +++ b/sbin/grml-bridge @@ -45,7 +45,7 @@ case "$1" in no|false) ;; *) - einfo "Setting Spanning-Tree Protocol (STP) to status" + einfo "Setting Spanning-Tree Protocol (STP) to status $STP" brctl stp "$BRIDGE_NAME" $STP eend $? ;; @@ -92,7 +92,9 @@ case "$1" in eindent if [ $BRIDGE_CONFIG = DHCP ]; then einfo "Terminating dhclient for $BRIDGE_NAME" - kill $(cat /var/run/dhclient.$BRIDGE_NAME.pid); + if [ -r "/var/run/dhclient.$BRIDGE_NAME.pid" ] ; then + kill "$(cat /var/run/dhclient.$BRIDGE_NAME.pid)" || /bin/true + fi fi einfo "Removing network devices from $BRIDGE_NAME: " @@ -115,6 +117,7 @@ case "$1" in ip link set "$BRIDGE_NAME" down; eend $? einfo "Removing bridge device" + ifconfig "$BRIDGE_NAME" down || /bin/true brctl delbr "$BRIDGE_NAME" eend $? eoutdent