ath79: fix first reboot issue on Netgear WNDR4300 v2 and WNDR4500 v3
[openwrt/openwrt.git] / target / linux / ath79 / nand / base-files / etc / board.d / 05_compat-version
diff --git a/target/linux/ath79/nand/base-files/etc/board.d/05_compat-version b/target/linux/ath79/nand/base-files/etc/board.d/05_compat-version
new file mode 100644 (file)
index 0000000..238927a
--- /dev/null
@@ -0,0 +1,15 @@
+. /lib/functions.sh
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+       netgear,wndr4300-v2|\
+       netgear,wndr4500-v3)
+               ucidef_set_compat_version "1.1"
+               ;;
+esac
+
+board_config_flush
+
+exit 0