Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 6d4e90fbfeb3cc4dac1b5822b2d98c29 > scriptlet

tcsh-6.17-12.fc14.i686.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
 grep -v '^/bin/tcsh$'  /etc/shells | \
 grep -v '^/bin/csh$' > /etc/shells.rpm && \
 mv /etc/shells.rpm /etc/shells
fi