diff --git a/modules/rhizo_base/files/var/SysmoBTS/bts b/modules/rhizo_base/files/var/SysmoBTS/bts new file mode 100755 index 0000000..07b456f --- /dev/null +++ b/modules/rhizo_base/files/var/SysmoBTS/bts @@ -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 + diff --git a/modules/rhizo_base/files/var/SysmoBTS/expect_5.45-r1.0_armv5te.ipk b/modules/rhizo_base/files/var/SysmoBTS/expect_5.45-r1.0_armv5te.ipk new file mode 100644 index 0000000..f16df72 Binary files /dev/null and b/modules/rhizo_base/files/var/SysmoBTS/expect_5.45-r1.0_armv5te.ipk differ diff --git a/modules/rhizo_base/files/var/SysmoBTS/libtcl8.6-0_8.6.6-r0.0_armv5te.ipk b/modules/rhizo_base/files/var/SysmoBTS/libtcl8.6-0_8.6.6-r0.0_armv5te.ipk new file mode 100644 index 0000000..2994c46 Binary files /dev/null and b/modules/rhizo_base/files/var/SysmoBTS/libtcl8.6-0_8.6.6-r0.0_armv5te.ipk differ diff --git a/modules/rhizo_base/files/var/SysmoBTS/pcu b/modules/rhizo_base/files/var/SysmoBTS/pcu new file mode 100755 index 0000000..5d3df01 --- /dev/null +++ b/modules/rhizo_base/files/var/SysmoBTS/pcu @@ -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 + diff --git a/modules/rhizo_base/files/var/SysmoBTS/provision.sh b/modules/rhizo_base/files/var/SysmoBTS/provision.sh index ed3948f..f86f014 100644 --- a/modules/rhizo_base/files/var/SysmoBTS/provision.sh +++ b/modules/rhizo_base/files/var/SysmoBTS/provision.sh @@ -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. diff --git a/modules/rhizo_base/files/var/SysmoBTS/tcl_8.6.6-r0.0_armv5te.ipk b/modules/rhizo_base/files/var/SysmoBTS/tcl_8.6.6-r0.0_armv5te.ipk new file mode 100644 index 0000000..5eab44b Binary files /dev/null and b/modules/rhizo_base/files/var/SysmoBTS/tcl_8.6.6-r0.0_armv5te.ipk differ