procd: fix/clean some conditions in nand.sh
authorJohn Crispin <blogic@openwrt.org>
Mon, 24 Nov 2014 19:14:29 +0000 (19:14 +0000)
committerJohn Crispin <blogic@openwrt.org>
Mon, 24 Nov 2014 19:14:29 +0000 (19:14 +0000)
commitb3fd44396768d8d8ff4786eeb699a9a8b23a8b9f
tree2c8915fa512d7a57ed1a55fa1f43d6decfe18741
parentb115a219481b7d48a373e31040e7c57ee36daa42
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43373 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/system/procd/files/nand.sh