Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 9507869c719e08287cd921ffc1d3902e > scriptlet

autofs-5.0.2-8mdv2008.0.x86_64.rpm

PREIN

/bin/sh
if [ $1 != "0" ]; then
    # upgrade
    if [ ! -d /etc/autofs ]; then
        # 4 -> 5 upgrade
        mkdir /etc/autofs
        for file in /etc/auto.{master,misc,net,smb}; do
            if [ -f "$file" ]; then
                mv $file* /etc/autofs
            fi
        done
    fi
fi

PREUN

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

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service autofs $1 autofs