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)
commitdb69761f9494ca3ebb7ebb559872809de061d973
treec604874e4b795ff972fc239c57e222f213407e0b
parent19c18eba9377eb9ee549f8c663467e2cb6531db5
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