qualcommax_ipq60xx 546 B

123456789101112131415161718192021222324252627
  1. [ -e /etc/config/ubootenv ] && exit 0
  2. touch /etc/config/ubootenv
  3. . /lib/uboot-envtools.sh
  4. . /lib/functions.sh
  5. board=$(board_name)
  6. case "$board" in
  7. 8devices,mango-dvk|\
  8. 8devices,mango-dvk-sfp)
  9. idx="$(find_mtd_index 0:APPSBLENV)"
  10. [ -n "$idx" ] && \
  11. ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
  12. ;;
  13. netgear,wax214)
  14. idx="$(find_mtd_index 0:appsblenv)"
  15. [ -n "$idx" ] && \
  16. ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
  17. ;;
  18. esac
  19. config_load ubootenv
  20. config_foreach ubootenv_add_app_config
  21. exit 0