Changeset 558 for trunk

Show
Ignore:
Timestamp:
11/23/10 22:36:12 (18 months ago)
Author:
JulioCP
Message:

Merged, nightwing directory files, from nightwing-backfire branch into trunk.

Location:
trunk/nightwing
Files:
9 added
2 removed
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/nightwing/etc/CHANGELOG

    r466 r558  
     1Version 0.7.5 
     2* ADDED: Option in the Web Admin Interface to reset user's connection in the Public AP. 
     3* ADDED: Node configuration option in the Web Admin Interface. 
     4* ADDED: Show Nightwing's version in status of all nodes. 
     5* ADDED: Gateway IP info in nw_conf and in the web interface. 
     6* CHANGED: Change to OpenWRT Backfire. 
     7* CHANGED: bmxd version. Now it's used r1707. 
     8* CHANGED: Wifidog version. Now it's used r1458. 
     9* CHANGED: Replace httpd with uhttpd. 
     10* CHANGED: Web pages are adjusted to work with uhttpd 
     11* CHANGED: The default routing class is now 2. 
     12* DELETED: Upgrade from http. 
     13 
    114Version 0.7 
    215* ADDED: nw_ts: Traffic Shapping (TS) function. 
  • trunk/nightwing/etc/config/wireless

    r352 r558  
    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 
  • trunk/nightwing/etc/init.d/nightwing

    r462 r558  
    9494 
    9595## Check if WiFiDog daemon is running, if so stop and disable it and change some configs. 
    96 if  [ -f /etc/rc.d/S50wifidog ]; then 
     96if  [ -f /etc/rc.d/S65wifidog ]; then 
    9797    /etc/init.d/wifidog stop 
    9898    /etc/init.d/wifidog disable 
  • trunk/nightwing/etc/nightwing_version

    r462 r558  
    1 0.7 
     10.7.5 
  • trunk/nightwing/usr/bin/nw_conf

    r453 r558  
    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)" 
     
    170171                if [[ "${#HTTPPASS}" -gt 7 && "${#HTTPPASS}" -lt 64 ]]; 
    171172                then 
    172                         echo "/:$HTTPUSER:$(httpd -m $HTTPPASS)" > /etc/httpd.conf 
     173                        echo "/:$HTTPUSER:$(uhttpd -m $HTTPPASS)" > /etc/httpd.conf 
    173174                        HTTPD_CHANGE=1 
    174175                else 
     
    425426                        echo "Do you want to change the Web access admin? [y/n]: " 
    426427                        case_httpd_access 
    427                         if  [ $HTTPD_CHANGE == "1" ]; then kill -9 $(pidof httpd);/etc/init.d/httpd start;fi 
     428                        if  [ $HTTPD_CHANGE == "1" ]; then /etc/init.d/uhttpd restart;fi 
    428429                        menu_2 
    429430                        ;; 
  • trunk/nightwing/www/cgi-bin/info.html

    r430 r558  
    11#!/bin/sh 
    22PATH=/bin:/usr/bin:/sbin:/usr/sbin 
     3 
     4echo -e "Content-type: text/html\n\n"  
    35cat << EOF 
    46 
     
    2325        <li id="home"><a href="/">Home</a></li> 
    2426        <li id="info" class="activelink"><a href="#">Info</a></li> 
    25         <li id="up"><a href="upgrade.html">Upgrade</a></li> 
     27        <li id="cs"><a href="clientOnLine.html">Client Status</a></li> 
     28        <li id="nw_conf"> <a href="nw_config/nw_conf_web.html">Config</a></li> 
    2629      </ul> 
    2730    </div> 
     
    3639   let i=$i+1 
    3740   eval $(echo tmp=$(uci get $element)) 
    38    eval VAR${i}=$(httpd -d $tmp) 
     41   eval VAR${i}=$(uhttpd -d $tmp) 
    3942done 
    4043cat << EOF 
     
    4750<li><b>Gateway Class:</b> $VAR3</li> 
    4851<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) 
    4953<li><b>Host Name:</b> $VAR5</li> 
    5054<li><b>Server Log IP:</b> $VAR6</li> 
     
    5458<li><b>Antenna Mode:</b> $VAR10</li> 
    5559<li><b>Mesh BSSID:</b> $VAR11</li> 
    56 <li><b>Node TS Mode:</b> $(if [ $VAR12 != "0" ];then echo "Enable";else echo "Disable";fi)</li> 
     60<li><b>Node TS Mode:</b> $(if [ $VAR12 != "0" ];then echo "Enabled";else echo "Disabled";fi)</li> 
    5761<li><b>Share Rate:</b> $VAR13 kbps</li> 
    5862<li><b>Public AP SSID:</b> $VAR14</li> 
     
    7276</html> 
    7377EOF 
     78 
  • trunk/nightwing/www/index.html

    r446 r558  
    2020        <li id="home" class="activelink"><a href="#">Home</a></li> 
    2121        <li id="info"> <a href="cgi-bin/info.html">Info</a></li> 
    22         <li id="up"> <a href="cgi-bin/upgrade.html">Upgrade</a></li> 
     22        <li id="cs"> <a href="cgi-bin/clientOnLine.html">Client Status</a></li> 
     23        <li id="nw_conf"> <a href="cgi-bin/nw_config/nw_conf_web.html">Config</a></li> 
    2324      </ul> 
    2425    </div>