From 74c54634138de586246c1b51ddf63f3b1dc4e911 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 22 Dec 2009 20:35:41 -0800 Subject: Update snmp template 1. Use non-expression syntax 2. Remove unused init action --- templates/protocols/snmp/node.def | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def index ad81892c..7b0fff19 100644 --- a/templates/protocols/snmp/node.def +++ b/templates/protocols/snmp/node.def @@ -1,11 +1,11 @@ priority: 980 help: Configure Simple Network Management Protocol (SNMP) commit:expression: $VAR(community/) != ""; "must configure a community" -create:expression: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp" -delete:expression: "touch /tmp/snmp.$PPID" -end:expression: "if [ -f \"/tmp/snmp.$PPID\" ]; then \ - sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \ - rm /tmp/snmp.$PPID; \ - else \ - sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \ - fi; " + +delete: touch /tmp/snmp.$PPID +end:if [ -f "/tmp/snmp.$PPID" ] + then sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp + rm /tmp/snmp.$PPID + else + sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp + fi -- cgit v1.2.3