PREUN
/bin/sh
if [ "$1" = "0" ];then /sbin/chkconfig --del xinetd fi
POSTIN
/bin/sh
update-alternatives --install /usr/sbin/xinetd xinetd /usr/sbin/xinetd-2.3.0 10 if [ "$1" = "1" ];then /sbin/chkconfig --add xinetd fi
POSTUN
/bin/sh
update-alternatives --remove xinetd /usr/sbin/xinetd-2.3.0 if [ "$1" -ge "1" ]; then /sbin/service xinetd condrestart >/dev/null 2>&1 fi