Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-updates > by-pkgid > 1bcd6deb8af212d21f00d0ba492881ed > scriptlet

ipxutils-2.2.6-11.1mdv2010.2.x86_64.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