Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > 47aae4d4143e4ea1794a44100f90d642 > 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