2
0
forked from Ivasoft/openwrt

pistachio: remove custom board detection override

Use device tree based model string

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2017-03-17 17:02:55 +01:00
parent c0e8108b70
commit ca44b9a0d4
5 changed files with 3 additions and 51 deletions

View File

@@ -33,7 +33,7 @@ platform_nand_pre_upgrade() {
local board=$(board_name)
case "$board" in
marduk)
img,pistachio-marduk)
local boot_partition=$(dmesg | grep "ubi0: attached.*" | sed "s/^.*\(firmware[0-1]\).*/\1/g")
echo "Current boot partiton $boot_partition (/dev/mtd$(find_mtd_index $boot_partition))"