Add setting alias in BTS shell
This commit is contained in:
parent
f98044c9d2
commit
2ebb792b69
2 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,7 @@ if [ "$PWD" != "/var/SysmoBTS" ]; then
|
|||
OLDPWD=$PWD
|
||||
cd /var/SysmoBTS
|
||||
fi
|
||||
SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known-$RANDOM"
|
||||
SSH_OPTS="-q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known-$RANDOM"
|
||||
. /home/rhizomatica/bin/vars.sh
|
||||
|
||||
for bts in "${!BTS[@]}" ; do
|
||||
|
@ -22,6 +22,8 @@ for bts in "${!BTS[@]}" ; do
|
|||
ssh $SSH_OPTS root@${BTS[$bts]} "date -s '$(date)'"
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "find /etc -name resolv.conf -type l -exec rm {} \;"
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 9.9.9.9 >> /etc/resolv.conf"
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "mkdir -p /etc/profile.d"
|
||||
scp $SSH_OPTS alias.sh root@${BTS[$bts]}:/etc/profile.d/alias.sh
|
||||
scp $SSH_OPTS osmo-pcu.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-pcu.cfg
|
||||
scp $SSH_OPTS osmo-bts_$bts.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-bts-sysmo.cfg
|
||||
scp $SSH_OPTS pcu bts mgr txp root@${BTS[$bts]}:/bin/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue