Commit 0453417c authored by Lionel Gauthier's avatar Lionel Gauthier

No diffs!

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4952 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent b20af817
......@@ -29,9 +29,9 @@ test_install_package linux-headers-`uname -r`
test_install_package "tshark" "--force-yes"
# for ODTONE git clone
test_install_package "git"
test_install_asn1c_4_rrc_cellular
echo_success "\n###############################"
echo_success "# COMPILE oaisim"
......
......@@ -25,7 +25,7 @@ export UE_MIH_USER_CONF_FILE=ue_lte_user.conf
ENV_SCRIPT_SOURCED="?"
ENV_SCRIPT_ERRORS="no"
if [[ $BASH_SOURCE != $0 ]]; then
if [[ $BASH_SOURCE != $0 ]]; then
THIS_SCRIPT_PATH=${BASH_SOURCE%env_802dot21.bash}
[[ x"$THIS_SCRIPT_PATH" == x ]] && THIS_SCRIPT_PATH="./"
ENV_SCRIPT_SOURCED="yes"
......@@ -46,7 +46,7 @@ if [ ! -d $BOOST_ROOT ]; then
ENV_SCRIPT_ERRORS="yes"
else
command -v b2 >/dev/null 2>&1
if [ $? -ne 0 ]; then
if [ $? -ne 0 ]; then
echo_warning "Program b2 is not installed or not in the PATH variable. Trying to resolve..." >&2
if [[ -x "$BOOST_ROOT/b2" ]]; then
echo_success "Program b2 found in dir $BOOST_ROOT." >&2
......@@ -58,7 +58,7 @@ else
export PATH=$PATH:$BOOST_ROOT
fi
command -v $BOOST_ROOT/b2 >/dev/null 2>&1
if [ $? -eq 0 ]; then
if [ $? -eq 0 ]; then
echo_success "Program b2 is now reachable by the PATH variable during the execution of this script." >&2
else
echo_error "Built of b2 failed. Please help yourself" >&2
......
......@@ -110,7 +110,7 @@ ENB_MIHF_ID=`cat $ODTONE_MIH_EXE_DIR/$ENB_MIH_F_CONF_FILE | grep id | grep \= |
#remove 2 last digits (vitualization, index on 2 digits)
ENB_RAL_LINK_ID_STRIPPED=${ENB_RAL_LINK_ID%%??}
#xterm -hold -e gdb --args
#xterm -hold -e gdb --args
$OPENAIR_TARGETS/SIMU/USER/oaisim -a -K $LOG_FILE -l9 -u0 -b1 -M0 -p2 -g1 -D $EMULATION_DEV_INTERFACE \
--enb-ral-listening-port $ENB_RAL_LISTENING_PORT \
--enb-ral-link-id $ENB_RAL_LINK_ID_STRIPPED \
......@@ -123,7 +123,7 @@ wait_process_started oaisim
# start MIH-USER
# wait for emulation start
tshark -c 500 -i $EMULATION_DEV_INTERFACE > /dev/null 2>&1
tshark -c 500 -i $EMULATION_DEV_INTERFACE > /dev/null 2>&1
#xterm -hold -e $ODTONE_MIH_EXE_DIR/$ENB_MIH_USER --conf.file $ODTONE_MIH_EXE_DIR/$ENB_MIH_USER_CONF_FILE &
#wait_process_started $ENB_MIH_USER
......
......@@ -41,7 +41,7 @@ trim ()
echo "$1" | sed -n '1h;1!H;${;g;s/^[ \t]*//g;s/[ \t]*$//g;p;}'
}
trim2()
trim2()
{
local var=$@
var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment