From cb9c343db46dd15b734e477d9adba343827e0360 Mon Sep 17 00:00:00 2001 From: slioch Date: Wed, 4 Mar 2009 11:21:14 -0800 Subject: clean up other static route commands to remove references to /tmp/ pellets and to use environment variable set via new cli. --- .../static/interface-route6/node.tag/next-hop-interface/node.def | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'templates/protocols/static/interface-route6') diff --git a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def index 5321c619..a7e1744a 100644 --- a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def +++ b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def @@ -7,12 +7,9 @@ allowed: local -a array array=( /sys/class/net/* ) echo -n ${array[@]##*/} -delete: touch /tmp/static.$PPID - -end: if [ -f "/tmp/static.$PPID" ]; then +end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then vyatta-vtysh -c "configure terminal" \ -c "no ipv6 route $VAR(../@) $VAR(@)"; - rm /tmp/static.$PPID; else if [ -n "$VAR(./distance/@)" ]; then DIST="$VAR(./distance/@)"; -- cgit v1.2.3