Commit 008c5ce2 authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors-upgrade: fix init-sdr script

parent 91c5ebc3
export PATH="/usr/bin:/usr/sbin:$PATH" #!/bin/bash
cd /root/trx_sdr/kernel;
AMARISOFT_PATH="/opt/amarisoft/$(ls -1 /opt/amarisoft | grep "^v[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}$" | sort | tail -n1)"
$AMARISOFT_PATH/trx_sdr/sdr_util version && exit;
lsmod | grep -q sdr || rmmod sdr;
cd $AMARISOFT_PATH/trx_sdr/kernel;
make clean; make clean;
bash init.sh 2>> /opt/amarisoft/init-sdr.log >> /opt/amarisoft/init-sdr.log bash init.sh;
$(find /opt/amarisoft -type f -wholename "*v*/*lteenb*/*lte_init.sh*") 2>> /opt/amarisoft/init-sdr.log >> /opt/amarisoft/init-sdr.log $AMARISOFT_PATH/enb/lte_init.sh;
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