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

post_upgrade () {
	post_install "$@"
}

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