Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 98df878508e908665e889e0d2398fd55 > scriptlet

autofs-4.1.4-4.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/autofs ]; then
/sbin/service autofs stop 1>&2 || :;
fi };	/sbin/chkconfig --del autofs
fi

POSTIN

/bin/sh
/sbin/chkconfig --add autofs
# triggerpostun would get called after %post
if [ -f /var/lock/subsys/automount ]; then
	mv /var/lock/subsys/{automount,autofs}
fi
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/autofs ] && . /etc/sysconfig/autofs
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/autofs ]; then
/sbin/service autofs restart 1>&2 || :;
else
echo 'Run "/sbin/service autofs start" to start autofs daemon.'
fi
fi };