#!/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