#!/bin/sh
# sets environment to run deployment scripts
#
# DeploymentStore should be set to a writable and persistant directory location
# setDeploymentEnv finds a SLAX USB device if $DeploymentStore does not exit
# setDeploymentEnv assumes 'sdx1_removable' is in the path
export DeploymentStore=/mnt/sdz1_removable/DeploymentStore
# setDeploymentEnv resets environment variable DeploymentStore in the likely event the path above is invalid
# setDeploymentEnv set $DeployPath when setDeploymentEnv is invoked with the full path
`/opt/deploy/bin/setDeploymentEnv`
[ -x /store ] || ln -s $StoreDevice /store
#echo $PATH
#echo $LD_LIBRARY_PATH
#echo $PYTHONPATH
ldconfig
export PATH=$PATH:/boot/mybin
export INPUTRC=/etc/inputrc
export TERM=vt100
#   The PS1 below did not work when booted from a CD
#export PS1='(\u)`pwd`\$ `if [ ! -z $KONSOLE_DCOP_SESSION ]; then dcop $KONSOLE_DCOP_SESSION renameSession "\W"; fi`'
#   so we changed the syntax to this
export PS1='(\u)`pwd`\$ `[ "$KONSOLE_DCOP_SESSION" = "" ] || dcop $KONSOLE_DCOP_SESSION renameSession "\W";`'
