2009-07-01 13:53:01 +00:00
|
|
|
Assume that the configuration is in /etc/snmp, instead of /usr/share/snmp
|
|
|
|
|
2008-07-25 11:03:32 +00:00
|
|
|
diff -up net-snmp-5.4.1/net-snmp-config.in.backup_patch_6 net-snmp-5.4.1/net-snmp-config.in
|
|
|
|
--- net-snmp-5.4.1/net-snmp-config.in.backup_patch_6 2007-06-30 00:18:27.000000000 +0200
|
|
|
|
+++ net-snmp-5.4.1/net-snmp-config.in 2008-07-25 12:53:19.000000000 +0200
|
|
|
|
@@ -302,7 +302,7 @@ else
|
|
|
|
fi
|
2004-11-16 08:54:28 +00:00
|
|
|
echo $line >> $outfile
|
|
|
|
|
|
|
|
- outfile="@datadir@/snmp/snmpd.conf"
|
|
|
|
+ outfile="/etc/snmp/snmpd.conf"
|
|
|
|
line="$token $user"
|
|
|
|
echo "adding the following line to $outfile:"
|
|
|
|
echo " " $line
|