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 $?
;;
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: "
ip link set "$BRIDGE_NAME" down; eend $?
einfo "Removing bridge device"
+ ifconfig "$BRIDGE_NAME" down || /bin/true
brctl delbr "$BRIDGE_NAME"
eend $?
eoutdent