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:/local/usr/bin:/usr/local/bin:$PATH" export PATH TMP=`egrep -c -e '^swat.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'swat 901/tcp # Samba Web Administration Tool' >>$SERVICES fi echo " Per default the Samba Web admin services are disabled. To enable them, adjust your /etc/samba/smb.conf and run: svcadm enable swat "