diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2008-05-28 13:14:57 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2008-05-28 13:14:57 -0700 |
commit | ff6c8c693d3f3e5b1702314087dfb2843448902c (patch) | |
tree | 398a70eda93d5a60cc889be52a67f71c80e5ad06 /templates/protocols | |
parent | fa79751880004dd5d8b2cab1e98b1107bc14615e (diff) | |
download | vyatta-cfg-quagga-ff6c8c693d3f3e5b1702314087dfb2843448902c.tar.gz vyatta-cfg-quagga-ff6c8c693d3f3e5b1702314087dfb2843448902c.zip |
Bugfix: 3019
Tighten up validity check on interface names.
Diffstat (limited to 'templates/protocols')
-rw-r--r-- | templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def index 80526635..c83201a8 100644 --- a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def +++ b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def @@ -18,7 +18,7 @@ help: Set the next-hop interface # syntax:expression: exec " \ IFNAME=$VAR(@) ; \ - if [ -z \"`ip addr | grep $IFNAME `\" ]; then \ + if [ ! -e /sys/class/net/$IFNAME ]; then \ if [ \"${IFNAME::5}\" != \"pppoa\" -a \"${IFNAME::5}\" != \"pppoe\" \ -a \"${IFNAME::3}\" != \"wan\" \ -a \"${IFNAME::2}\" != \"ml\" ]; then \ |