ath79 421 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2011-2014 OpenWrt.org
  4. #
  5. [ -e /etc/config/ubootenv ] && exit 0
  6. touch /etc/config/ubootenv
  7. . /lib/uboot-envtools.sh
  8. . /lib/functions.sh
  9. board=$(board_name)
  10. case "$board" in
  11. glinet,ar300m|\
  12. ocedo,koala|\
  13. ocedo,raccoon|\
  14. openmesh,om5p-ac-v2)
  15. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  16. ;;
  17. esac
  18. config_load ubootenv
  19. config_foreach ubootenv_add_app_config ubootenv
  20. exit 0