PREUN
/bin/sh
if [ "$1" = "0" ]; then
umask 022
grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
mv -f /etc/shells.new /etc/shells
fi
POSTIN
/bin/sh
umask 022
if [ ! -f /etc/shells ]; then
echo "/bin/bash" > /etc/shells
echo "/bin/rbash" >> /etc/shells
else
if ! grep -q '^/bin/bash$' /etc/shells; then
echo "/bin/bash" >> /etc/shells
fi
if ! grep -q '^/bin/rbash$' /etc/shells; then
echo "/bin/rbash" >> /etc/shells
fi
fi
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info >/dev/null 2>&1
POSTUN
/bin/sh
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info >/dev/null 2>&1