apm821xx 582 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. [ -e /etc/config/ubootenv ] && exit 0
  3. touch /etc/config/ubootenv
  4. . /lib/uboot-envtools.sh
  5. . /lib/functions.sh
  6. board=$(board_name)
  7. case "$board" in
  8. meraki,mr24)
  9. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
  10. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "4"
  11. ;;
  12. meraki,mx60)
  13. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000" "4"
  14. ;;
  15. netgear,wndap620|\
  16. netgear,wndap660)
  17. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
  18. ;;
  19. esac
  20. config_load ubootenv
  21. config_foreach ubootenv_add_app_config ubootenv
  22. exit 0