#!/bin/bash
rfshome=/home/SMCDev/SMC/runtime/rfs/home/smc
rfsbin="$rfshome/bin"
rfslib="$rfshome/lib"
#
if [ -d "$rfsbin" ]
then
  newval="$rfsbin"
  if [ -n "$PATH" ]; then newval="$newval:$PATH" ; fi
  export PATH="$newval"
fi
#
if [ -d "$rfslib" ]
then
  newval="$rfslib"
  if [ -n "$LD_LIBRARY_PATH" ]; then newval="$newval:$LD_LIBRARY_PATH" ; fi
  export LD_LIBRARY_PATH="$newval"
fi
#
cd "$rfshome"
bash
