Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > f5ba67f92e4ed14e678ff59a85655594 > scriptlet

nfs-utils-1.1.5-2mdv2009.1.x86_64.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service nfs-utils $1 nfs-server

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service nfs-utils $1 nfs-server 
if [ $1 = 2 ]; then
    # handle upgrade from previous init script scheme
    if [ -f /etc/rc.d/init.d/nfs ]; then
        # ap activation status of old script
        if [ `LC_ALL=C chkconfig --list nfs | cut -f 5` == '3:on' ]; then
            chkconfig --add nfs-server
        fi
        # don't leave dangling symlinks
        chkconfig --del nfs
    fi
    [ -f /etc/rc.d/init.d/rpcsvcgssd ] && chkconfig --del rpcsvcgssd
    # always finish with a true status, otherwise rpm barks
    /bin/true
fi

/usr/share/rpm-helper/create-file nfs-utils $1 /var/lib/nfs/xtab root root 644 
/usr/share/rpm-helper/create-file nfs-utils $1 /var/lib/nfs/etab root root 644 
/usr/share/rpm-helper/create-file nfs-utils $1 /var/lib/nfs/rmtab root root 644