1 2 3 4 5 6 7
post_install() { grep -qe '^/usr/bin/rc$' etc/shells || echo '/usr/bin/rc' >> etc/shells } pre_remove() { sed -ri '\|^/usr/bin/rc$|d' etc/shells }