#
# ident "@(#)blackbox.rc 1.14     01/06/21 SMI"
#
# Copyright (c) 2000 by Sun Microsystems, Inc.
# All rights reserved.     
#
# This file is sourced by all BB scripts running 
# outside the chroot environment

#force LANG to C to avoid localized output from cmds
LANG=C
export LANG
LC_ALL=C
export LC_ALL

# where to find all BB related SW
BBCHR=/opt/SUNWbb 
BBPATH=${BBROOT}${BBCHR}
BBVARPATH=${BBROOT}/var$BBCHR
BBTMPPATH=${BBVARPATH}/tmp
BBLOCKPATH=${BBVARPATH}/lock
BBROOTPATH=${BBVARPATH}/root
BBCHRHOME=${BBROOTPATH}/home
BBETCOPT=${BBROOT}/etc/opt

export BBPATH BBCHR BBCHRHOME BBETCOPT

# user ids for BB users, starting at BASE
# group ids are set to group 'nobody'
# default shell is /bin/sh
# used by: bbmkuser 
BASE=150000 
OFFSET=10000
GID=60001
BBUSERGRP=nobody
BBROOTUID=160000 # BASE + OFFSET
BBROOTGID=100    # BBUSERGID + 1   
BBMAXUSER=25	 # default value for BB, not valid for kiosk
BBUSERCOMMENT=ControlledAccessUser
BBMAXUSERFILE=/var/opt/SUNWbb/users.conf
BBUSERLIST=/var/opt/SUNWbb/users.list
BBAUTOINSTALL=${BBROOT}/tmp/bb_autoinstall_flag 

SHELL=/bin/sh 
USERPREFIX=Sbbu

# this file describes which user related files are
# saveed to the portal
USERFILE=$BBPATH/config/userstate.cfg

# files to copy from the device directory
# syntax for each entry  <permisson>':'[path]<filename>
# if filename is '+' ==> all files with this path and
# all files get the same permission                    
# used by: devices.sh
SP_FILES="root:660:ip    \
	  root:666:udp   \
	  root:666:ticotsord \
	  root:666:kstat \
	  root:666:null  \
	  root:666:ptmx  \
	  root:666:tty   \
	  root:666:zero" 

# define the directory where per apps rc sripts reside
# these are sourced from bbsession
BB_APPS_RC=$BBPATH/apps.d

# define the directory where per apps variable exports reside
# these are sourced and set in the chroot env.
# only varible assignment is alloed inside these files
# the right side of an assignment may contain env. variables
# i.e. NewVar=$XYZ
BB_APPSCHR_RC=$BBPATH/appschr.d

BB_XSESSION_CONFIG_PATH="/usr/dt/config/Xsession.d"
BB_SUNRAY_PKG=SUNWut
BBAUDIOPATH=/dev/utaudio

# provide the bb binaries
PATH=${PATH}:$BBPATH/bin:/usr/sbin; export PATH

BBHOME=$BBCHRHOME/$BBUSER
BROWSER_LOCK=$BBLOCKPATH/${BBUSER}.watchdog_lock

if [ -f $BBROOTPATH/etc/bbchroot.rc ]; then
	. $BBROOTPATH/etc/bbchroot.rc 
fi

# set PRELOAD libs for the chroot env, currently those
# will be used by the bbnetscape script
# libXts_bb.so modifies the sensitivity of fields in netscape and acroread
# print dialogs. Replace with libXt_bb.so to override those dialogs.

BBLD_PRELOAD="/usr/lib/secure/libc_ut.so:/usr/lib/secure/libXts_bb.so"

# some debug switches
#LIBX11_BB_LOG 		# uncomment to allow logging of libX11_bb.so

