From 9c901a3be8d07d8c4e5375223d5acca39511798e Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen.hemminger@vyatta.com>
Date: Tue, 5 Jan 2010 11:23:50 -0800
Subject: Remove snmpd.conf on deletion

Bug 4499
---
 templates/protocols/snmp/node.def | 1 +
 1 file changed, 1 insertion(+)

(limited to 'templates/protocols/snmp/node.def')

diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def
index 7b0fff19..6ce9c2c7 100644
--- a/templates/protocols/snmp/node.def
+++ b/templates/protocols/snmp/node.def
@@ -6,6 +6,7 @@ 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
+	 rm -f /etc/snmp/snmpd.conf
     else
         sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp
     fi
-- 
cgit v1.2.3

