File: preinst

package info (click to toggle)
snmptrapfmt 1.08sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 172 kB
  • ctags: 90
  • sloc: ansic: 1,330; sh: 90; makefile: 54
file content (15 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

#
# save the original configuration file for snmptrapd
#
if [ -r /etc/snmp/snmptrapd.conf ]; then
  cp /etc/snmp/snmptrapd.conf /etc/snmp/snmptrapd.conf.save
fi

#
# save the configuration file for snmptrapfmt (if any)
#
if [ -r /etc/snmp/snmptrapfmt.conf ]; then
  cp /etc/snmp/snmptrapfmt.conf /etc/snmp/snmptrapfmt.conf.save
fi