Changeset 585 for branches

Show
Ignore:
Timestamp:
12/18/10 21:18:35 (17 months ago)
Author:
JulioCP
Message:

nightwing-wa: Added to nw_conf the rest of the configuration related to TrustedMACList for NDS.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/nightwing-wa/nightwing/usr/bin/nw_conf

    r584 r585  
    808808                        echo "$RU is not a valid option" 
    809809                        echo "[y/n]: " 
    810                         case_tml_act 
     810                        case_tml_wrong 
    811811                        ;; 
    812812                esac             
     
    814814 
    815815 
     816case_store_tml(){ 
     817        read ACT 
     818        case $ACT in 
     819                y|Y) 
     820                        echo "To add/remove copy the whole list with/out the MAC/s to add/remove." 
     821                        echo "Enter the new list: " 
     822                        read maclist 
     823                        echo "The new list is: "$maclist 
     824                        echo "Permanently save it? [y/n]: " 
     825                        read YN 
     826                         
     827                        case $YN in 
     828                            y|Y) 
     829                                uci set nodogsplash.trustedmaclist.macs_list="${maclist}" 
     830                                uci commit nodogsplash 
     831                                echo "MAC list permanently saved." 
     832                                ;; 
     833                            n|N) 
     834                                menu_5 
     835                                ;; 
     836                            *) 
     837                                echo "$YN is not a valid option" 
     838                                menu_5 
     839                                ;; 
     840                        esac 
     841                        ;; 
     842                n|N) 
     843                        echo $NOCHANGED_MSG 
     844                        ;; 
     845                *) 
     846                        echo "$ACT is not a valid option" 
     847                        echo "[y/n]: " 
     848                        case_store_tml 
     849                        ;; 
     850                esac             
     851} 
    816852 
    817853clear 
     
    822858echo -e "\033[1m c.\033[0m Change Redirect URL" 
    823859echo -e "\033[1m d.\033[0m Activate/Deactivate TrustedMACList" 
    824 echo -e "\033[1m e.\033[0m Back to main menu" 
    825 echo -n "Select an option [a - d]: " 
     860echo -e "\033[1m e.\033[0m Add/Remove MAC in TrustedMACList" 
     861echo -e "\033[1m f.\033[0m Back to main menu" 
     862echo -n "Select an option [a - f]: " 
    826863read val5 
    827864case $val5 in 
     
    872909                ;; 
    873910        e|E) 
     911                echo "The current MACs in the TrustedMACList are: "$(uci get nodogsplash.trustedmaclist.macs_list) 
     912                echo $YESNO_MSG 
     913                case_store_tml 
     914                sleep 2 
     915                menu_5 
     916                ;; 
     917        f|F) 
    874918                ;; 
    875919        *)