diff options
Diffstat (limited to 'target/linux/ramips/mt7621/base-files')
-rwxr-xr-x | target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version | 19 | ||||
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/uci-defaults/05_fix-compat-version | 8 |
2 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version b/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version new file mode 100755 index 0000000000..d79092f76f --- /dev/null +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Copyright (C) 2020 OpenWrt.org +# + +. /lib/functions.sh +. /lib/functions/uci-defaults.sh + +board_config_update + +case "$(board_name)" in + *) + ucidef_set_compat_version "1.1" + ;; +esac + +board_config_flush + +exit 0 diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/05_fix-compat-version b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/05_fix-compat-version new file mode 100644 index 0000000000..09cce180e4 --- /dev/null +++ b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/05_fix-compat-version @@ -0,0 +1,8 @@ +# +# Copyright (C) 2020 OpenWrt.org +# + +uci set system.@system[0].compat_version="1.1" +uci commit system + +exit 0 |