pistachio 483 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2017 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. [ -e /etc/config/ubootenv ] && exit 0
  9. touch /etc/config/ubootenv
  10. . /lib/uboot-envtools.sh
  11. . /lib/functions.sh
  12. board=$(board_name)
  13. case "$board" in
  14. img,pistachio-marduk)
  15. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x2000" "0x1000"
  16. ;;
  17. esac
  18. config_load ubootenv
  19. config_foreach ubootenv_add_app_config ubootenv
  20. exit 0