Author: blogic
Date: 2014-07-10 21:16:31 +0200 (Thu, 10 Jul 2014)
New Revision: 41564

Modified:
   trunk/package/system/procd/files/nand.sh
Log:
procd: correctly identify ubifs in tar file

A missing path prevents the rootfs type contained in a SysupgradeNAND
tar file from being determined correctly.

This fixes it, and also corrects a minor spelling mistake.

Signed-off-by: Ben Mulvihill <[email protected]>

Modified: trunk/package/system/procd/files/nand.sh
===================================================================
--- trunk/package/system/procd/files/nand.sh    2014-07-10 19:16:27 UTC (rev 
41563)
+++ trunk/package/system/procd/files/nand.sh    2014-07-10 19:16:31 UTC (rev 
41564)
@@ -180,7 +180,7 @@
        
        sync
        [ -f "$conf_tar" ] && nand_restore_config "$conf_tar"
-       echo "sysupgrade successfull"
+       echo "sysupgrade successful"
        reboot -f
 }
 
@@ -226,7 +226,7 @@
        local kernel_length=`(tar xf $tar_file sysupgrade-$board_name/kernel -O 
| wc -c) 2> /dev/null`
        local rootfs_length=`(tar xf $tar_file sysupgrade-$board_name/root -O | 
wc -c) 2> /dev/null`
 
-       local rootfs_type="$(identify_tar "$tar_file" root)"
+       local rootfs_type="$(identify_tar "$tar_file" 
sysupgrade-$board_name/root)"
 
        local has_kernel=1
        local has_env=0
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to