Commit dfc8563a authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors: init-sdr for 2023 trx_sdr bug

parent 81d90498
Pipeline #29857 failed with stage
#!/bin/bash #!/bin/bash
OLD_AMARISOFT_PATH="/opt/amarisoft/$(ls -1 /opt/amarisoft | grep "^v2021-[0-9]\{2\}-[0-9]\{2\}$" | sort | tail -n1)"
AMARISOFT_PATH="/opt/amarisoft/$(ls -1 /opt/amarisoft | grep "^v[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}$" | sort | tail -n1)" AMARISOFT_PATH="/opt/amarisoft/$(ls -1 /opt/amarisoft | grep "^v[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}$" | sort | tail -n1)"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH" export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
$AMARISOFT_PATH/trx_sdr/sdr_util version && exit; $AMARISOFT_PATH/trx_sdr/sdr_util version && exit;
lsof /dev/sdr0 && exit; lsof /dev/sdr0 && exit;
lsmod | grep -q sdr && rmmod sdr; lsmod | grep -q sdr && rmmod sdr;
if echo $AMARISOFT_PATH | grep -q 2023; then
cd $OLD_AMARISOFT_PATH/trx_sdr/kernel;
make clean && make && bash init.sh;
rmmod sdr;
fi
cd $AMARISOFT_PATH/trx_sdr/kernel; cd $AMARISOFT_PATH/trx_sdr/kernel;
make clean; make clean && make && bash init.sh;
make;
bash init.sh;
9499d4f0e5e31ced58dd082cd3c7b8958b0a6832a7b8733db62c608002a62a2d - 32d040685a3d3cbc9b2a368a9f38a3d1bc47e4289ea14f7395bbf64121e3d08e -
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