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
# map 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