summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/sbin
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-12-23 09:46:48 +0100
committerMathias Kresin <dev@kresin.me>2016-12-24 10:03:38 +0100
commita75ce960ac1b9d67af280e17e1e653b3b39def20 (patch)
tree25f7314479a3165ac565378783eba1a303645da9 /target/linux/ramips/base-files/sbin
parent29f5e643ad130c138507dc767187744ad710208a (diff)
downloadmtk-20170518-a75ce960ac1b9d67af280e17e1e653b3b39def20.zip
mtk-20170518-a75ce960ac1b9d67af280e17e1e653b3b39def20.tar.gz
mtk-20170518-a75ce960ac1b9d67af280e17e1e653b3b39def20.tar.bz2
ramips: use different board names for variants
Use different names for flash size related board variants, to make sure that only images for the actual flash size are considered as valid by the image validation code. Remove the flash size suffix from the string returned by ramips_board_detect() to ensure that existing scripts relying on the former used boardname are still working. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/sbin')
-rwxr-xr-xtarget/linux/ramips/base-files/sbin/fixup-mac-address3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/sbin/fixup-mac-address b/target/linux/ramips/base-files/sbin/fixup-mac-address
index 6e3bac4..3fd8fcb 100755
--- a/target/linux/ramips/base-files/sbin/fixup-mac-address
+++ b/target/linux/ramips/base-files/sbin/fixup-mac-address
@@ -7,7 +7,8 @@ offset=""
NEW_MAC=
YES=
-case "$(cat /tmp/sysinfo/board_name)" in
+board=$(ramips_board_name)
+case $board in
witi)
partname=factory
offset=$((0xe000))