summarylogtreecommitdiffstats
path: root/mrsh-git.install
blob: 9eea176c8845b5c296f9137434e42c0632ac77e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
	grep -qe '^/bin/mrsh$' etc/shells || echo '/bin/mrsh' >> etc/shells
	grep -qe '^/usr/bin/mrsh$' etc/shells || echo '/usr/bin/mrsh' >> etc/shells
}

post_upgrade() {
	post_install
}

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