blob: 8bafd2bed7685f213234bef34d936c00dce15abd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
#
# $FreeBSD$
#
[ $# != 2 ] && exit 1
[ -z "${PKG_PREFIX}" ] && exit 1
[ -n "${BATCH}" ] && exit 0
case $2 in
POST-INSTALL)
${PKG_PREFIX}/etc/rc.d/isc-dhcpd.sh forceinstall
;;
DEINSTALL)
${PKG_PREFIX}/etc/rc.d/isc-dhcpd.sh forceuninstall
;;
POST-DEINSTALL|PRE-INSTALL)
;;
*)
echo "usage: $0 <PKG_NAME> {PRE-INSTALL|POST-INSTALL|DEINSTALL|POST-DEINSTALL}" >&2
exit 1
;;
esac
|