Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > f05f36917307b4eb50a07b0123cef4fb > scriptlet

tcsh-6.12-2.1mdk.x86_64.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