From b3c7a99f7713a4a8a01fd9b748d968f4b019f214 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Fri, 28 May 2021 22:14:19 +0200 Subject: [PATCH] Add pwr watch script to BTS Tired of typing sbts2050-util...... --- modules/rhizo_base/files/var/SysmoBTS/maint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/rhizo_base/files/var/SysmoBTS/maint.sh b/modules/rhizo_base/files/var/SysmoBTS/maint.sh index 2fa8668..89b74a1 100644 --- a/modules/rhizo_base/files/var/SysmoBTS/maint.sh +++ b/modules/rhizo_base/files/var/SysmoBTS/maint.sh @@ -15,7 +15,7 @@ SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known-$RANDOM" for bts in "${!BTS[@]}" ; do - scp $SSH_OPTS authorized_keys root@${BTS[$bts]}:/home/root/.ssh/ + #scp $SSH_OPTS authorized_keys root@${BTS[$bts]}:/home/root/.ssh/ if [ "$?" != "0" ] ; then echo "No ssh access to BTS?" continue @@ -49,7 +49,8 @@ for bts in "${!BTS[@]}" ; do # Master Verified. echo "BTS is a 2050 Master" scp $SSH_OPTS mgr root@${BTS[$bts]}:/bin/ - ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/mgr" + scp $SSH_OPTS pwr root@${BTS[$bts]}:/bin/ + ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/mgr /bin/pwr" 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/ @@ -62,6 +63,8 @@ for bts in "${!BTS[@]}" ; do if [ "$_trxNR" == "1" ] ; then # Slave Verified. echo "BTS is a 2050 Slave" + scp $SSH_OPTS pwr root@${BTS[$bts]}:/bin/ + ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pwr" # Nothing to do. fi