dnsmasq.postconf 828 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. source /jffs/scripts/aiop/aiop-dnsmasq
  3. case "${1}" in
  4. wl0.1)
  5. assign_ip "wl0.1" "192.168.2.1" "2" "254"
  6. ;;
  7. wl0.2)
  8. assign_ip "wl0.2" "192.168.3.1" "2" "254"
  9. ;;
  10. wl0.3)
  11. assign_ip "wl0.3" "192.168.4.1" "2" "254"
  12. ;;
  13. wl1.1)
  14. assign_ip "wl1.1" "192.168.5.1" "2" "254"
  15. ;;
  16. wl1.2)
  17. assign_ip "wl1.2" "192.168.6.1" "2" "254"
  18. ;;
  19. wl1.3)
  20. assign_ip "wl1.3" "192.168.7.1" "2" "254"
  21. ;;
  22. *)
  23. assign_ip "wl0.1" "192.168.2.1" "2" "254"
  24. assign_ip "wl0.2" "192.168.3.1" "2" "254"
  25. assign_ip "wl0.3" "192.168.4.1" "2" "254"
  26. assign_ip "wl1.1" "192.168.5.1" "2" "254"
  27. assign_ip "wl1.2" "192.168.6.1" "2" "254"
  28. assign_ip "wl1.3" "192.168.7.1" "2" "254"
  29. ;;
  30. esac