BTS Updates

This commit is contained in:
Keith Whyte 2021-12-01 04:42:31 +01:00
parent 89c7f9ad59
commit 417d61f4a4
5 changed files with 40 additions and 22 deletions

View file

@ -22,8 +22,8 @@ for bts in "${!BTS[@]}" ; do
fi
# Commands to run on all BTS:
# Nothing to do.
scp $SSH_OPTS ca-fix.sh root@${BTS[$bts]}:/home/root/
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /home/root/ca-fix.sh"
_modelNR=$(ssh $SSH_OPTS ${BTS[$bts]} sysmobts-util model-nr)
@ -41,6 +41,7 @@ for bts in "${!BTS[@]}" ; do
if [ "$_modelNR" == "65535" ] && [ "$_trxNR" == "255" ] ; then
echo "Looks like a SysmoBTS"
ssh $SSH_OPTS root@${BTS[$bts]} "/home/root/ca-fix.sh"
# Nothing to do
fi
@ -48,9 +49,11 @@ for bts in "${!BTS[@]}" ; do
if [ "$_modelNR" == "2050" ] && [ "$_trxNR" == "0" ] ; then
# Master Verified.
echo "BTS is a 2050 Master"
scp $SSH_OPTS pcu-ns root@${BTS[$bts]}:/bin/
scp $SSH_OPTS tgl-s root@${BTS[$bts]}:/bin/tgl
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu-ns /bin/tgl"
ssh $SSH_OPTS root@${BTS[$bts]} "/home/root/ca-fix.sh"
#scp $SSH_OPTS pcu-ns root@${BTS[$bts]}:/bin/
#scp $SSH_OPTS tgl-s root@${BTS[$bts]}:/bin/tgl
#ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu-ns /bin/tgl"
#gunzip -c sysmobts-mgr-arm.gz > sysmobts-mgr
#ssh $SSH_OPTS root@${BTS[$bts]} "systemctl stop sysmobts-mgr"
#scp $SSH_OPTS sysmobts-mgr root@${BTS[$bts]}:/usr/bin/
@ -63,14 +66,19 @@ for bts in "${!BTS[@]}" ; do
if [ "$_trxNR" == "1" ] ; then
# Slave Verified.
echo "BTS is a 2050 Slave"
scp $SSH_OPTS pcu-ns root@${BTS[$bts]}:/bin/
scp $SSH_OPTS tgl-m root@${BTS[$bts]}:/bin/tgl
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu-ns /bin/tgl"
ssh $SSH_OPTS root@${BTS[$bts]} "/home/root/ca-fix.sh"
#scp $SSH_OPTS pcu-ns root@${BTS[$bts]}:/bin/
#scp $SSH_OPTS tgl-m root@${BTS[$bts]}:/bin/tgl
#ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu-ns /bin/tgl"
# Nothing to do.
fi
done
/var/SysmoBTS/opkg-1.sh
if [ "$OLDPWD" != "" ]; then
cd $OLDPWD
fi