summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2009-02-27 18:12:49 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2009-02-27 18:12:49 -0800
commit465c7ca1f843763d85ce715019c453dcf22ebd9e (patch)
tree7ff1c99d81c13a93b0980380b55e8d448de60231 /templates
parente70376d3db9a010984d9de97949226ddc76157e7 (diff)
downloadvyatta-cfg-quagga-465c7ca1f843763d85ce715019c453dcf22ebd9e.tar.gz
vyatta-cfg-quagga-465c7ca1f843763d85ce715019c453dcf22ebd9e.zip
fix logic and shell syntax
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bridge/node.def2
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;