diff options
Diffstat (limited to 'templates')
-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 \ |