3 PATH=/bin:/usr/sbin:/usr/bin
5 PKG_PREFIX=${PKG_PREFIX:=/usr/local}
16 UCOMMENT="Remote SCSI"
17 UHOME=${PKG_PREFIX}/rscsi
18 USHELL=${PKG_PREFIX}/sbin/rscsi
20 echo "==========================================================================="
23 if ! pw groupshow "${GROUP}" >/dev/null 2>&1; then
24 if ! pw groupadd ${GROUP} -g ${GID}; then
25 echo "Adding group \"${GROUP}\" failed."
30 if ! pw usershow "${USER}" >/dev/null 2>&1; then
31 if ! pw useradd ${USER} -u ${UID} -c "${UCOMMENT}" \
32 -d ${UHOME} -g ${GROUP} -s ${USHELL}; then
33 echo "Adding user \"${USER}\" failed."
38 if ! [ -d ${UHOME} ] ; then
40 chown ${UID}:${GID} ${UHOME}
43 if ! [ -f ${UHOME}/.rhosts ] ; then
44 cp /usr/share/skel/dot.rhosts ${UHOME}/.rhosts
45 chown ${UID}:${GID} ${UHOME}/.rhosts
46 chmod 0600 ${UHOME}/.rhosts
49 echo "See ${PKG_PREFIX}/share/doc/cdrtools/README.rscsi and ${PKG_PREFIX}/etc/rscsi"
50 echo "for further information on how to configure remote access to SCSI-devices"
53 if ! grep '^shell' /etc/inetd.conf >/dev/null 2>&1; then
54 echo "Don't forget to add an entry for rshd(8) to /etc/inetd.conf in order to"
55 echo "be able to use the remote SCSI daemon."