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

post_upgrade() {
	post_install
}

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