Sophie

Sophie

distrib > PLD > ra > i686 > by-pkgid > e5136b37e7a53ded4594de399de0761e > scriptlet

tcsh-static-6.10.02-3.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	grep -v '^/bin/tcsh\.static$' /etc/shells > /etc/shells.new
	mv -f /etc/shells.new /etc/shells
fi

POSTIN

/bin/sh
if [ ! -f /etc/shells ]; then
	echo "/bin/tcsh.static" > /etc/shells
else
	grep -q '^/bin/tcsh\.static$' /etc/shells || echo "/bin/tcsh.static" >> /etc/shells
fi