post_install() { grep -qe '^/usr/bin/yash$' etc/shells || echo '/usr/bin/yash' >> etc/shells } post_upgrade() { post_install } pre_remove() { sed -i -r '/^(\/usr)?\/bin\/yash$/d' etc/shells }