Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 1d0c57be5130ee47b0f75275c10a64f4 > scriptlet

leafnode-1.9.12-3mdk.i586.rpm

PREIN

/bin/sh
if [ -f /etc/cron.daily/texpire.cron ] ; then
        rm -f /etc/cron.daily/texpire.cron
fi

POSTIN

/bin/sh
if [ `grep leafnode /etc/inetd.conf | wc -l` = 0 ] ; then
	echo "nntp	stream	tcp	nowait	news	/usr/sbin/tcpd	/usr/sbin/leafnode" >> /etc/inetd.conf
fi
if [ -f /var/run/inetd.pid ] ; then
	kill -HUP `cat /var/run/inetd.pid` 2> /dev/null ||:
fi

POSTUN

/bin/sh
if [ "$1" = "0" ]; then
	grep -v leafnode /etc/inetd.conf | grep -v /bin/sh > /etc/inetd.conf.new
	mv /etc/inetd.conf.new /etc/inetd.conf
fi
if [ -f /var/run/inetd.pid ] ; then
        kill -HUP `cat /var/run/inetd.pid` 2> /dev/null ||:
fi