Move the SysmoBTS source directory
This commit is contained in:
parent
203f92084c
commit
89c7f9ad59
36 changed files with 10 additions and 10 deletions
20
modules/rhizo_base/files/SysmoBTS/ssh-all.sh
Normal file
20
modules/rhizo_base/files/SysmoBTS/ssh-all.sh
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script will exec cmd on all the BTS
|
||||
|
||||
if [ "$PWD" != "/var/SysmoBTS" ]; then
|
||||
OLDPWD=$PWD
|
||||
cd /var/SysmoBTS
|
||||
fi
|
||||
SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known-$RANDOM"
|
||||
. /home/rhizomatica/bin/vars.sh
|
||||
|
||||
for bts in "${!BTS[@]}" ; do
|
||||
|
||||
ssh -t $SSH_OPTS root@${BTS[$bts]} $*
|
||||
|
||||
done
|
||||
|
||||
if [ "$OLDPWD" != "" ]; then
|
||||
cd $OLDPWD
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue