ipq806x: EA8500 fix boot partition detection
authorSamantha Collard <sammyrc34@gmail.com>
Sat, 30 May 2020 23:49:51 +0000 (09:49 +1000)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 31 May 2020 13:44:05 +0000 (15:44 +0200)
Remove extraneous code that disabled boot partition detection.

Fixes: b3770eaca39f ("mtd: base-files: Unify dual-firmware devices (Linksys)")
Signed-off-by: Samantha Collard <sammyrc34@gmail.com>
target/linux/ipq806x/base-files/lib/upgrade/linksys.sh

index a957bf114931496c1967ce5e9ca8a138624f5e37..22771278ce1a13fbcd169bd9a7ef17a4c9569d93 100644 (file)
@@ -21,8 +21,6 @@ linksys_get_target_firmware() {
                        "${cur_boot_part}" "${mtd_ubi0}"
        fi
 
-       cur_boot_part=$(/usr/sbin/fw_printenv -n boot_part)
-
        case $cur_boot_part in
        1)
                fw_setenv -s - <<-EOF