1 # arg 1: the new package version
3 if ! grep -q /usr
/sbin
/jk_chrootsh
/etc
/shells
; then \
4 echo "Appending /usr/sbin/jk_chroots to /etc/shells";\
5 echo /usr
/sbin
/jk_chrootsh
>> /etc
/shells
;\
9 # arg 1: the old package version
11 if grep -q /usr
/sbin
/jk_chrootsh
/etc
/shells
; then \
12 echo "Removing /usr/sbin/jk_chroots from /etc/shells";\
14 grep -v /usr
/sbin
/jk_chrootsh
/etc
/shells
>${fil}
15 install -m 644 -o 0 -g 0 ${fil} /etc
/shells
22 [ "$(type -t "$op")" = "function" ] && $op "$@"