05_compat-version 390 B

123456789101112131415161718192021222324252627
  1. #
  2. # Copyright (C) 2020 OpenWrt.org
  3. #
  4. . /lib/functions.sh
  5. . /lib/functions/uci-defaults.sh
  6. board_config_update
  7. case "$(board_name)" in
  8. ubnt,edgerouter-x|\
  9. ubnt,edgerouter-x-sfp|\
  10. iptime,ax2002m|\
  11. iptime,ax2004m)
  12. ucidef_set_compat_version "2.0"
  13. ;;
  14. tplink,er605-v2)
  15. ucidef_set_compat_version "1.2"
  16. ;;
  17. *)
  18. ucidef_set_compat_version "1.1"
  19. ;;
  20. esac
  21. board_config_flush
  22. exit 0