diff options
author | Stig Thormodsrud <stig@uffda.(none)> | 2007-11-02 14:36:04 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@uffda.(none)> | 2007-11-02 14:36:04 -0700 |
commit | 0c0e1b04823e9faa479e4462c6eb958df0871b42 (patch) | |
tree | ab784c884afdcef220b6d70bdc05ed809f43387d /templates/protocols | |
parent | c0c53152dc9cf08fdae421d9fd8441d129561ada (diff) | |
download | vyatta-cfg-quagga-0c0e1b04823e9faa479e4462c6eb958df0871b42.tar.gz vyatta-cfg-quagga-0c0e1b04823e9faa479e4462c6eb958df0871b42.zip |
Verify that a community has been defined before firing up snmpd.
Diffstat (limited to 'templates/protocols')
-rw-r--r-- | templates/protocols/snmp/node.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def index 4c35e2b0..b140f7f6 100644 --- a/templates/protocols/snmp/node.def +++ b/templates/protocols/snmp/node.def @@ -1,4 +1,5 @@ help: "Configure SNMP" +commit: $(community/) != ""; "must configure a community" create: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp" delete: "touch /tmp/snmp.\\$PPID" end: "if [ -f \"/tmp/snmp.\\$PPID\" ]; then \ |