diff --git a/modules/rhizo_base/files/var/SysmoBTS/opkg.sh b/modules/rhizo_base/files/var/SysmoBTS/opkg.sh index 6a343bd..dacee43 100644 --- a/modules/rhizo_base/files/var/SysmoBTS/opkg.sh +++ b/modules/rhizo_base/files/var/SysmoBTS/opkg.sh @@ -29,8 +29,15 @@ for bts in "${!BTS[@]}" ; do gunzip -c osmo-bts-sysmo-arm-cf7a.gz > osmo-bts-sysmo-nitb scp $SSH_OPTS osmo-bts-sysmo-nitb root@${BTS[$bts]}:/usr/bin/ ssh $SSH_OPTS root@${BTS[$bts]} "chmod 755 /usr/bin/osmo-bts-sysmo-nitb" + ssh $SSH_OPTS root@${BTS[$bts]} "cd /usr/bin; mv osmo-bts-sysmo osmo-bts-sysmo.opkg ; ln -s osmo-bts-sysmo-nitb osmo-bts-sysmo" fi - + #if [ "$(ssh $SSH_OPTS ${BTS[$bts]} 'ls /usr/bin/osmo-pcu-nitb 2> /dev/null; echo $?')" == "2" ] ; then + gunzip -c osmo-pcu-arm-54211.gz > osmo-pcu-nitb + scp $SSH_OPTS osmo-pcu-nitb root@${BTS[$bts]}:/usr/bin/ + ssh $SSH_OPTS root@${BTS[$bts]} "chmod 755 /usr/bin/osmo-pcu-nitb" + ssh $SSH_OPTS root@${BTS[$bts]} "cd /usr/bin; mv osmo-pcu osmo-pcu.opkg ; ln -s osmo-pcu-nitb osmo-pcu; systemctl restart osmo-bts" + #fi + done if [ "$OLDPWD" != "" ]; then