# adds rsync entries to /etc/inetd.conf if [ -z "$PKG_INSTALL_ROOT" ]; then SERVICES=/etc/services else SERVICES=${PKG_INSTALL_ROOT}/etc/services fi if [ ! -f $SERVICES ]; then cp /dev/null $SERVICES chmod 644 $SERVICES fi PATH="/usr/xpg4/bin:/usr/bin:/usr/local/bin:$PATH" export PATH TMP=`egrep -c -e '^rsync.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'rsync 873/tcp # remote sync service' >>$SERVICES fi echo " Per default the rsync service is disabled. To enable it, adjust your /etc/rsyncd.conf and run: svcadm enable rsync "