1 2 3 4 5 6 7 8 9 10 11 12 13
post_install() { grep -qe '^/usr/bin/zash$' etc/shells || echo '/usr/bin/zash' >> etc/shells grep -qe '^/bin/zash$' etc/shells || echo '/bin/zash' >> etc/shells } post_upgrade() { post_install } pre_remove() { sed -ri -e '\|^/usr/bin/zash$|d' -e '\|^/bin/zash$|d' etc/shells }