Add ipk packages for expect and scripts
This commit is contained in:
parent
97b08d6651
commit
26980e41cb
6 changed files with 71 additions and 0 deletions
32
modules/rhizo_base/files/var/SysmoBTS/bts
Executable file
32
modules/rhizo_base/files/var/SysmoBTS/bts
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/expect -f
|
||||
|
||||
spawn telnet localhost 4241
|
||||
expect ">"
|
||||
send "enable\r"
|
||||
expect "#"
|
||||
send "logging enable\r"
|
||||
expect "#"
|
||||
send "logging level all everything\r"
|
||||
expect "#"
|
||||
send "logging print category 1\r"
|
||||
expect "#"
|
||||
|
||||
send "logging level rr notice\r"
|
||||
expect "#"
|
||||
send "logging level oml info\r"
|
||||
expect "#"
|
||||
send "logging level pag info\r"
|
||||
expect "#"
|
||||
send "logging level rsl info\r"
|
||||
expect "#"
|
||||
send "logging level rll notice\r"
|
||||
expect "#"
|
||||
send "logging level meas notice\r"
|
||||
expect "#"
|
||||
send "logging level pcu info\r"
|
||||
expect "#"
|
||||
|
||||
send "logging filter all 1\r"
|
||||
expect "#"
|
||||
interact
|
||||
|
Binary file not shown.
Binary file not shown.
35
modules/rhizo_base/files/var/SysmoBTS/pcu
Executable file
35
modules/rhizo_base/files/var/SysmoBTS/pcu
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/expect -f
|
||||
|
||||
spawn telnet localhost 4240
|
||||
expect ">"
|
||||
send "enable\r"
|
||||
expect "#"
|
||||
send "logging enable\r"
|
||||
expect "#"
|
||||
send "logging level all everything\r"
|
||||
expect "#"
|
||||
send "logging print category 1\r"
|
||||
expect "#"
|
||||
|
||||
send "logging level l1if info\r"
|
||||
expect "#"
|
||||
send "logging level rlcmac info\r"
|
||||
expect "#"
|
||||
send "logging level rlcmacmeas notice\r"
|
||||
expect "#"
|
||||
send "logging level tbf info\r"
|
||||
expect "#"
|
||||
send "logging level tbful info\r"
|
||||
expect "#"
|
||||
send "logging level tbfdl info\r"
|
||||
expect "#"
|
||||
send "logging level rlcmacsched info\r"
|
||||
expect "#"
|
||||
|
||||
send "logging level set-all error\r"
|
||||
expect "#"
|
||||
|
||||
send "logging filter all 1\r"
|
||||
expect "#"
|
||||
interact
|
||||
|
|
@ -18,6 +18,10 @@ for bts in "${!BTS[@]}" ; do
|
|||
ssh $SSH_OPTS root@${BTS[$bts]} "date -s '$(date)'"
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 9.9.9.9 >> /etc/resolv.conf"
|
||||
scp $SSH_OPTS osmo-pcu.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-pcu.cfg
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "mkdir /tmp/ipk"
|
||||
scp $SSH_OPTS *.ipk root@${BTS[$bts]}:/tmp/ipk/
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "opkg install /tmp/ipk/*.ipk"
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "rm -r /tmp/ipk"
|
||||
|
||||
if [ "$(ssh $SSH_OPTS ${BTS[$bts]} sysmobts-util trx-nr)" == "0" ] ; then
|
||||
# Master Verified.
|
||||
|
|
BIN
modules/rhizo_base/files/var/SysmoBTS/tcl_8.6.6-r0.0_armv5te.ipk
Normal file
BIN
modules/rhizo_base/files/var/SysmoBTS/tcl_8.6.6-r0.0_armv5te.ipk
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue