Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 465ca53d17707b298ec4193041688d26 > scriptlet

dhcp-server-4.1.2-0.6mdv2010.2.i586.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service dhcp $1 dhcpd

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service dhcp $1 dhcpd 
# New dhcpd lease file
if [ ! -f /var/lib/dhcp/dhcpd.leases ]; then
    touch /var/lib/dhcp/dhcpd.leases
fi

if [ $1 = 0 ]; then
	/etc/rc.d/init.d/dhcpd start
fi

#update an eventual installed dhcp-2* server
if [ -f /etc/dhcpd.conf ]; then
	perl /usr/sbin/update_dhcp.pl
fi

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    /sbin/service dhcpd condrestart >/dev/null 2>&1  
fi