LiteCel: Add scripts to reset boards, (toggle power)
This commit is contained in:
parent
47d64c02f2
commit
d7187daadf
3 changed files with 18 additions and 2 deletions
|
@ -50,7 +50,8 @@ for bts in "${!BTS[@]}" ; do
|
|||
echo "BTS is a 2050 Master"
|
||||
scp $SSH_OPTS mgr root@${BTS[$bts]}:/bin/
|
||||
scp $SSH_OPTS pwr root@${BTS[$bts]}:/bin/
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/mgr /bin/pwr"
|
||||
scp $SSH_OPTS tgl-s root@${BTS[$bts]}:/bin/tgl
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/mgr /bin/pwr /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/
|
||||
|
@ -64,7 +65,8 @@ for bts in "${!BTS[@]}" ; do
|
|||
# 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"
|
||||
scp $SSH_OPTS tgl-m root@${BTS[$bts]}:/bin/tgl
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pwr /bin/tgl"
|
||||
# Nothing to do.
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue