Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 8590e8e0fdbfb03a6e54e23e95d12412 > scriptlet

tcsh-6.08.00-9mdk.i586.rpm

POSTIN

/bin/sh
if [ ! -f /etc/shells ]; then
	echo "/bin/tcsh" > /etc/shells
	echo "/bin/csh" > /etc/shells
else
	grep '^/bin/tcsh$' /etc/shells > /dev/null || echo "/bin/tcsh" >> /etc/shells
	grep '^/bin/csh$' /etc/shells > /dev/null || echo "/bin/csh" >> /etc/shells
fi

POSTUN

/bin/sh
if [ ! -x /bin/tcsh ]; then
	grep -v '^/bin/tcsh$' /etc/shells | grep -v '^/bin/csh$'> /etc/shells.rpm
	mv /etc/shells.rpm /etc/shells
fi