post_install() {
  grep -q '/usr/bin/csh' etc/shells || echo '/usr/bin/csh' >> etc/shells
  grep -q '/usr/bin/tcsh' etc/shells || echo '/usr/bin/tcsh' >> etc/shells
}

post_upgrade() {
  post_install
}

pre_remove() {
  sed -i '/^\/usr\/bin\/csh/d' etc/shells
  sed -i '/^\/usr\/bin\/tcsh/d' etc/shells
}
