Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 1d9d57ab4ab8c1884b1bf7af1165522e > scriptlet

ipxutils-2.2.6-11.1mdv2010.2.i586.rpm

POSTIN

/bin/sh
if [ -f /etc/modules.conf ];then
    if ! grep -q -E "^alias.*net-pf-4.*ipx" /etc/modules.conf;then
	echo "alias net-pf-4 ipx" >> /etc/modules.conf
    fi
else
    echo "alias net-pf-4 ipx" >> /etc/modules.conf
fi

POSTUN

/bin/sh
if [ "$1" = "0" ];then
    if [ -f /etc/modules.conf ];then
	if grep -q -E "^alias.*net-pf-4.*ipx" /etc/modules.conf;then
	    sed 's/^alias net-pf-4 ipx//' /etc/modules.conf > /tmp/.modules.conf \
	    && mv -f /tmp/.modules.conf /etc/modules.conf
	fi
    fi
fi