PREUN
/bin/sh
if [ "$1" = "0" ]; then
if [ -r /var/lock/subsys/radiusd ]; then
/etc/rc.d/init.d/radius stop >&2
fi
/sbin/chkconfig --del radius
fi
POSTIN
/bin/sh
umask 027
touch /var/log/rad{u,w}tmp
/sbin/chkconfig --add radius
if [ -r /var/lock/subsys/radiusd ]; then
/etc/rc.d/init.d/radius restart >&2
else
echo "Run \"/etc/rc.d/init.d/radius start\" to start radius daemon."
echo "Don't forget to read"
echo " /usr/share/doc/icradius-0.18.1/QUICKSTART.txt.gz"
echo "if you find problems with running daemon"
fi