Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > b15552b4bd15d168717bcbba94630a3c > scriptlet

ipxutils-2.2.6-6mdv2009.0.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