Changeset 579 for branches

Show
Ignore:
Timestamp:
12/05/10 23:45:19 (18 months ago)
Author:
JulioCP
Message:

nightwing-wa: Added the posibility to use a list of MAC addresses that don't need to authenticate.

Location:
branches/nightwing-wa/nightwing/etc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/nightwing-wa/nightwing/etc/config/nodogsplash

    r514 r579  
    66# redirect_url: where the redirection will led to 
    77# 
     8# active: 1 to activate pass without authentication, 0 to deactivate it 
     9# macs_list: comma separated MAC addresses that will not need to authenticate. Take into account MAC spoofing when using this :) 
     10# 
    811 
    912config interface general 
     
    1215        option redirect_url 
    1316 
     17config interface trustedmaclist 
     18        option active 0 
     19        option macs_list 00:00:00:00:00:00 
  • branches/nightwing-wa/nightwing/etc/init.d/nodogsplash

    r514 r579  
    1717if [ $REDIRECT_URL ]; then 
    1818  REDIRECT="RedirectURL $REDIRECT_URL" 
     19fi 
     20 
     21if [ $(uci get nodogsplash.trustedmaclist.active) -eq 1 ]; then 
     22  TML=$(echo "TrustedMacList ")$(uci get nodogsplash.trustedmaclist.lista_macs) 
    1923fi 
    2024 
     
    5963GatewayName $GATEWAY_NAME 
    6064$REDIRECT 
     65$TML 
    6166EOF 
    6267