Changeset 551

Show
Ignore:
Timestamp:
11/21/10 01:37:23 (18 months ago)
Author:
JulioCP
Message:

Added Gateway IP info in nw_conf and in the web interface, and changed antenna settings.

Location:
branches/nightwing-backfire/nightwing
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/nightwing-backfire/nightwing/etc/config/wireless

    r496 r551  
    1111#       option distance   200 
    1212        option diversity 0 
    13         option txantenna 1 
    14         option rxantenna 1 
    15         option antenna  auto 
     13        option antenna  vertical 
    1614 
    1715# Mesh ad-hoc 
  • branches/nightwing-backfire/nightwing/usr/bin/nw_conf

    r524 r551  
    125125        echo -e "\033[1m Gateway Class:\033[0m $(uci_get $GATEWAY_CLASS)" 
    126126        echo -e "\033[1m Routing Class:\033[0m $(uci_get $ROUTING_CLASS)" 
     127if [ $(uci get bmx_mode.node.mode) == 'client' ]; then echo -e "\033[1m Gateway IP:\033[0m $(bmxd -c -d2 | grep "=>" | awk '{ print $2 }')"; fi 
    127128        echo -e "\033[1m Host Name:\033[0m $(uci_get $HOSTNAME)" 
    128129        echo -e "\033[1m Server Log IP:\033[0m $(uci_get $SERVERLOG)" 
  • branches/nightwing-backfire/nightwing/www/cgi-bin/info.html

    r550 r551  
    5050<li><b>Gateway Class:</b> $VAR3</li> 
    5151<li><b>Routing Class:</b> $VAR4</li> 
     52$(if [ $(uci get bmx_mode.node.mode) == 'client' ]; then echo "<li><b>Gateway IP:</b> $(bmxd -c -d2 | grep "=>" | awk '{ print $2 }')</li>"; fi) 
    5253<li><b>Host Name:</b> $VAR5</li> 
    5354<li><b>Server Log IP:</b> $VAR6</li>