diff options
Diffstat (limited to 'templates/interfaces')
-rw-r--r-- | templates/interfaces/bridge/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/bridge/node.def b/templates/interfaces/bridge/node.def index cbf5e9cc..2b0eb34c 100644 --- a/templates/interfaces/bridge/node.def +++ b/templates/interfaces/bridge/node.def @@ -6,7 +6,7 @@ syntax:expression: pattern $VAR(@) "^br[0-9]+$" ; "Must be (br0 - br999)" create: sudo brctl addbr $VAR(@) -delete: if [ -z `ls /sys/class/net/$VAR(@)/brif` ]; then +delete: if [ -n "`ls /sys/class/net/$VAR(@)/brif`" ]; then echo "Interfaces are still assigned to bridge $VAR(@)"; exit 1; fi; |