- Timestamp:
- 12/18/10 21:18:35 (17 months ago)
- Files:
-
- 1 modified
-
branches/nightwing-wa/nightwing/usr/bin/nw_conf (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/nightwing-wa/nightwing/usr/bin/nw_conf
r584 r585 808 808 echo "$RU is not a valid option" 809 809 echo "[y/n]: " 810 case_tml_ act810 case_tml_wrong 811 811 ;; 812 812 esac … … 814 814 815 815 816 case_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 } 816 852 817 853 clear … … 822 858 echo -e "\033[1m c.\033[0m Change Redirect URL" 823 859 echo -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]: " 860 echo -e "\033[1m e.\033[0m Add/Remove MAC in TrustedMACList" 861 echo -e "\033[1m f.\033[0m Back to main menu" 862 echo -n "Select an option [a - f]: " 826 863 read val5 827 864 case $val5 in … … 872 909 ;; 873 910 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) 874 918 ;; 875 919 *)