LTE UE entry script: print both configs if present
This commit is contained in:
@@ -3,21 +3,31 @@
|
|||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
|
|
||||||
PREFIX=/opt/oai-lte-ue
|
PREFIX=/opt/oai-lte-ue
|
||||||
CONFIGFILE=$PREFIX/etc/ue_usim.conf
|
USIM_CONFIGFILE=$PREFIX/etc/ue_usim.conf
|
||||||
|
|
||||||
if [ ! -f $CONFIGFILE ]; then
|
if [ ! -f $USIM_CONFIGFILE ]; then
|
||||||
echo "No configuration file found: please mount at $CONFIGFILE"
|
echo "No ue_usim.conf configuration file found: please mount at $USIM_CONFIGFILE"
|
||||||
exit 255
|
exit 255
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=================================="
|
echo "=================================="
|
||||||
echo "== Configuration file:"
|
echo "== USIM Configuration file:"
|
||||||
cat $CONFIGFILE
|
cat $USIM_CONFIGFILE
|
||||||
|
|
||||||
#now generate USIM files
|
#now generate USIM files
|
||||||
# At this point all operations will be run from $PREFIX!
|
# At this point all operations will be run from $PREFIX!
|
||||||
cd $PREFIX
|
cd $PREFIX
|
||||||
$PREFIX/bin/conf2uedata -c $CONFIGFILE -o $PREFIX
|
$PREFIX/bin/conf2uedata -c $USIM_CONFIGFILE -o $PREFIX
|
||||||
|
|
||||||
|
CONFIGFILE=$PREFIX/etc/ue.conf
|
||||||
|
|
||||||
|
if [ ! -f $CONFIGFILE ]; then
|
||||||
|
echo "No ue.conf configuration file found"
|
||||||
|
else
|
||||||
|
echo "=================================="
|
||||||
|
echo "== UE Configuration file:"
|
||||||
|
cat $CONFIGFILE
|
||||||
|
fi
|
||||||
|
|
||||||
# Load the USRP binaries
|
# Load the USRP binaries
|
||||||
echo "=================================="
|
echo "=================================="
|
||||||
@@ -36,10 +46,9 @@ while [[ $# -gt 0 ]]; do
|
|||||||
new_args+=("$1")
|
new_args+=("$1")
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
FILE=$PREFIX/etc/ue.conf
|
|
||||||
if [[ -f "$FILE" ]]; then
|
if [[ -f "$FILE" ]]; then
|
||||||
new_args+=("-O")
|
new_args+=("-O")
|
||||||
new_args+=("$PREFIX/etc/ue.conf")
|
new_args+=("$CONFIGFILE")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# enable printing of stack traces on assert
|
# enable printing of stack traces on assert
|
||||||
|
|||||||
Reference in New Issue
Block a user