Add shell func to modify bts max_power_red
This commit is contained in:
parent
79c4da8bd0
commit
e765806d65
1 changed files with 14 additions and 0 deletions
|
@ -164,3 +164,17 @@ unlock () {
|
|||
send "network\r"; expect "#"; send "bts $bts\r"; expect "#"; send "trx 0\r"; expect "#"; send "rf_locked 0\r";
|
||||
expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"';
|
||||
}
|
||||
|
||||
red ()
|
||||
{
|
||||
if [ "$1" == "" ]; then
|
||||
echo "BTS #?";
|
||||
return;
|
||||
fi;
|
||||
if [ "$2" == "" ]; then
|
||||
echo "Power Reduction?";
|
||||
return;
|
||||
fi;
|
||||
expect -c 'set bts '$1'; set red '$2'; spawn telnet localhost 4242; expect ">"; send "enable\r"; expect "#"; send "configure terminal\r"; expect "#";
|
||||
send "network\r"; expect "#"; send "bts $bts\r"; expect "#"; send "trx 0\r"; expect "#"; send "max_power_red $red\r";
|
||||
expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"; send "exit\r"; expect "#"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue