mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-24 05:18:14 +00:00
mediatek: replace multiple fw_setenv calls by the bulk one
This commit replaces multiple fw_setenv calls by the bulk one to reduce flash writes. Thanks @Linaro1985 for the idea. Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17580 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
1d021458fd
commit
a6b0abf466
@ -40,13 +40,15 @@ xiaomi_initial_setup()
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fw_setenv boot_wait on
|
fw_setenv -s - <<-EOF
|
||||||
fw_setenv uart_en 1
|
boot_wait on
|
||||||
fw_setenv flag_boot_rootfs 0
|
uart_en 1
|
||||||
fw_setenv flag_last_success 1
|
flag_boot_rootfs 0
|
||||||
fw_setenv flag_boot_success 1
|
flag_last_success 1
|
||||||
fw_setenv flag_try_sys1_failed 8
|
flag_boot_success 1
|
||||||
fw_setenv flag_try_sys2_failed 8
|
flag_try_sys1_failed 8
|
||||||
|
flag_try_sys2_failed 8
|
||||||
|
EOF
|
||||||
|
|
||||||
local board=$(board_name)
|
local board=$(board_name)
|
||||||
case "$board" in
|
case "$board" in
|
||||||
|
Loading…
Reference in New Issue
Block a user