aboutsummaryrefslogtreecommitdiff
path: root/target/linux/layerscape/base-files/etc/uci-defaults/05_fix-compat-version
blob: 6cd137af9a851f51c9df84a80c5162455e66fb06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# Copyright (C) 2020 OpenWrt.org
#

. /lib/functions.sh

case "$(board_name)" in
	fsl,ls1012a-frwy-sdboot | \
	fsl,ls1012a-rdb | \
	fsl,ls1021a-iot-sdboot | \
	fsl,ls1021a-twr | \
	fsl,ls1021a-twr-sdboot | \
	fsl,ls1043a-rdb | \
	fsl,ls1043a-rdb-sdboot | \
	fsl,ls1046a-rdb | \
	fsl,ls1046a-rdb-sdboot | \
	fsl,ls1088a-rdb | \
	fsl,ls1088a-rdb-sdboot | \
	fsl,ls2088a-rdb)
		uci set system.@system[0].compat_version="2.0"
		uci commit system
		;;
esac

exit 0