summarylogtreecommitdiffstats
path: root/mksh.install
blob: 84bbedf435d37ebabb0dcde6188d64b83f50c66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  grep -x '/bin/mksh' /etc/shells 2>/dev/null || echo '/bin/mksh' >> /etc/shells
  grep -x '/usr/bin/mksh' /etc/shells 2>/dev/null || echo '/usr/bin/mksh' >> /etc/shells
}

post_upgrade() {
  post_install
}

post_remove() {
  sed -i '/^(\/usr)?\/bin\/mksh$/d' /etc/shells
}

# vim:set ts=2 sw=2 et: