if [ -f "${PKG_INSTALL_ROOT}/etc/samba/smb.conf" ]; then echo "Found a smb.conf - fine." else cp -p ${PKG_INSTALL_ROOT}/etc/samba/smb.conf.default \ ${PKG_INSTALL_ROOT}/etc/samba/smb.conf fi echo " Per default the SMB/CIFS and NetBIOS name services are disabled. To enable them, adjust your /etc/samba/smb.conf and run: svcadm enable smbd svcadm enable nmbd "