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

post_upgrade() {
  post_install
}

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

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