Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 46bb6a088b7217e994d4cfd8d7f0f8e0 > scriptlet

ipxutils-2.2.6-23.mga8.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 > /etc/.modules.conf.ipx \
	    && mv -f /etc/.modules.conf.ipx /etc/modules.conf
	fi
    fi
fi