Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > media > main > by-pkgid > 6af043f76ab52885a4fe083378d7285b > scriptlet

ipxutils-2.2.0.18.a-2mdk.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