Sophie

Sophie

distrib > CentOS > 5 > i386 > media > os > by-pkgid > f96efb52d2a18f17890dc359ddc686f3 > scriptlet

dhcpv6-1.0.10-20.el5.i386.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
    /sbin/service dhcp6s status > /dev/null 2>&1
    if [ $? = 3 ]; then
        /sbin/service dhcp6s stop > /dev/null 2>&1
    fi

    /sbin/service dhcp6r status > /dev/null 2>&1
    if [ $? = 3 ]; then
        /sbin/service dhcp6r stop > /dev/null 2>&1
    fi

    /sbin/chkconfig --del dhcp6s
    /sbin/chkconfig --del dhcp6r || :
fi

POSTIN

/bin/sh
/sbin/chkconfig --add dhcp6s
/sbin/chkconfig --add dhcp6r || :

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    /sbin/service dhcp6s condrestart >/dev/null 2>&1
    /sbin/service dhcp6r condrestart >/dev/null 2>&1 || :
fi