mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-02 04:11:33 +02:00
12 lines
320 B
Bash
12 lines
320 B
Bash
#!/bin/sh
|
|
|
|
# test if the jk_chrootsh is already in /etc/shells
|
|
# this previously had _at_echo but that fails on FreeBSD
|
|
if test -w /etc/shells; then \
|
|
if ! grep /usr/sbin/jk_chrootsh /etc/shells ; then \
|
|
echo "appending /usr/sbin/jk_chroots to /etc/shells";\
|
|
echo /usr/sbin/jk_chrootsh >> /etc/shells ;\
|
|
fi \
|
|
fi
|
|
|