Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 619bf6ff4b126dc342a4826f0d0b372e > scriptlet

openswan-2.4.5-1.amd64.rpm

PREUN

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

POSTIN

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