Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > c33a9484851b57b42c5346742729d645 > scriptlet

rawdevices-2.12r-6.amd64.rpm

PREUN

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

POSTIN

/bin/sh
/sbin/chkconfig --add rawdevices
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/rawdevices ] && . /etc/sysconfig/rawdevices
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/rawdevices ]; then
/sbin/service rawdevices restart 1>&2 || :;
else
echo 'Run "/sbin/service rawdevices start" to start rawdevices service.'
fi
fi };