File: preinst

package info (click to toggle)
snmptrapfmt 1.11
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 136 kB
  • ctags: 88
  • sloc: ansic: 1,330; sh: 90; makefile: 27
file content (17 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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

#DEBHELPER#