02_network 287 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. . /lib/functions/system.sh
  3. . /lib/functions/uci-defaults.sh
  4. . /lib/apm821xx.sh
  5. board_config_update
  6. board=$(apm821xx_board_name)
  7. case "$board" in
  8. mr24)
  9. ucidef_set_interface_lan "eth0"
  10. ;;
  11. *)
  12. ucidef_set_interfaces_lan_wan "eth0" "eth1"
  13. ;;
  14. esac
  15. board_config_flush
  16. exit 0