PREIN
/bin/sh
rm -rf /usr/share/zsh/latest
ln -s /usr/share/zsh/4.0.6 /usr/share/zsh/latest
PREUN
/bin/sh
if [ "$1" = "0" ]; then
grep -v '^/bin/zsh$' /etc/shells > /etc/shells.new
mv -f /etc/shells.new /etc/shells
fi
rm -rf /usr/share/zsh/latest
POSTIN
/bin/sh
if [ ! -f /etc/shells ]; then
echo "/bin/zsh" >> /etc/shells
else
grep -q '^/bin/zsh$' /etc/shells || echo "/bin/zsh" >> /etc/shells
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