procd: fix/clean some conditions in nand.sh
authorJohn Crispin <john@openwrt.org>
Mon, 24 Nov 2014 19:14:29 +0000 (19:14 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 24 Nov 2014 19:14:29 +0000 (19:14 +0000)
commit054962958345b94066397c3ed226224ba9062e94
tree2c8915fa512d7a57ed1a55fa1f43d6decfe18741
parent3bd31d88023a34c1160b0e93537726f957461e12
procd: fix/clean some conditions in nand.sh

1) nand_upgrade_tar: use a simpler condition that matches if () { }
   logic and fix check of $kernel_length variable
2) nand_do_upgrade_stage2: use case, otherwise one could believe we
   always call nand_upgrade_tar

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43373
package/system/procd/files/nand.sh