PREUN
/bin/sh
if [ "$1" = "0" ]; then
/bin/sed -i -e '/^\/usr\/bin\/\(rssh\|scpsh\|sftpsh\)$/d' /etc/shells
fi
POSTIN
/bin/sh
if [ ! -f /etc/shells ]; then
umask 022
echo "/usr/bin/rssh" > /etc/shells
echo "/usr/bin/scpsh" >> /etc/shells
echo "/usr/bin/sftpsh" >> /etc/shells
else
if ! grep -q '^/usr/bin/rssh$' /etc/shells; then
echo "/usr/bin/rssh" >> /etc/shells
fi
if ! grep -q '^/usr/bin/scpsh$' /etc/shells; then
echo "/usr/bin/scpsh" >> /etc/shells
fi
if ! grep -q '^/usr/bin/sftpsh$' /etc/shells; then
echo "/usr/bin/sftpsh" >> /etc/shells
fi
fi
Triggers
rssh <
2.3.2-0.6
/bin/sh
# make compat symlinks, the symlinks are discarded using %ghost on package uninstall
ln -sf /usr/bin/rssh /bin/rssh
ln -sf /usr/bin/scpsh /bin/scpsh
ln -sf /usr/bin/sftpsh /bin/sftpsh