Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 7bc7e6206b6fb0d14c8d19728ffa099b > scriptlet

tcsh-6.09.04-1.2mdk.i586.rpm

POSTIN

/bin/sh
if [ ! -f /etc/shells ]; then
	echo "/bin/tcsh" >> /etc/shells
	echo "/bin/csh" >> /etc/shells
else
	grep -q /bin/tcsh /etc/shells || echo "/bin/tcsh" >> /etc/shells
	grep -q /bin/csh /etc/shells || echo "/bin/csh" >> /etc/shells
fi

POSTUN

/bin/sh
if [ ! -x /bin/tcsh ]; then
    perl -ni -e 'm|/bin/t?csh| or print' /etc/shells
fi