7 part
=$
(find_mtd_part
"active_bank")
9 if [ -n "$part" ]; then
10 active_bank
="$(strings $part | grep bank)"
12 if [ $active_bank = "bank1" ]; then
13 echo "bank2" > /tmp
/change_bank
15 echo "bank1" > /tmp
/change_bank
18 mtd
write /tmp
/change_bank active_bank
21 echo "active_bank partition missed!"
26 echo "Unsupported hardware."