- /etc -> SYSCONFDIR

- general cleanups
This commit is contained in:
danh 2001-02-13 02:23:40 +00:00
parent e4ce0897f7
commit 5d89fd558a
3 changed files with 25 additions and 35 deletions

View File

@ -1,28 +1,19 @@
#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.2 2000/06/29 21:20:05 jakob Exp $
# $OpenBSD: DEINSTALL,v 1.3 2001/02/13 02:23:40 danh Exp $
#
# de-installation of ucd-snmp
PERSISTENT_DIR=/var/ucd-snmp
remove_persistent()
{
rm -rf ${1}
}
do_deinstall()
{
if [ -d ${PERSISTENT_DIR} ]; then
remove_persistent ${PERSISTENT_DIR}
rm -rf ${PERSISTENT_DIR}
fi
if [ -f /etc/snmpd.conf ]; then
if [ -f ${SYSCONFDIR}/snmpd.conf ]; then
echo "+------------"
echo "| If you do not plan on re-installing or upgrading this"
echo "| package, it is safe to remove /etc/snmpd.conf"
echo "| package, it is safe to remove ${SYSCONFDIR}/snmpd.conf"
echo "+------------"
fi
}
do_deinstall ${PERSISTENT_DIR}
exit 0

View File

@ -1,6 +1,5 @@
This is UCD SNMP, a derivative of CMU's SNMP package.
From the README:
This is UCD SNMP, a derivative of CMU's SNMP package. From
the README:
This package contains a port and modified code of the CMU 2.1.2.1
snmp agent. It has been modified to allow extensibility quickly

View File

@ -8,9 +8,9 @@
| following in /etc/rc.local.
|
| if [ -x ${PREFIX}/sbin/snmpd ]; then
| ${PREFIX}/sbin/snmpd -c /etc/snmpd.conf && echo -n ' snmpd'
| ${PREFIX}/sbin/snmpd -c ${SYSCONFDIR}/snmpd.conf && echo -n ' snmpd'
| fi
|
| This will start snmpd and use /etc/snmpd.conf for the configuration.
| This will start snmpd and use ${SYSCONFDIR}/snmpd.conf for the configuration.
| (see snmpd(5) for available options)
+------------