Ticket #7068: sysupgrade-fix.patch

File sysupgrade-fix.patch, 783 bytes (added by acinonyx, 8 years ago)
  • trunk/target/linux/x86/base-files/lib/upgrade/platform.sh

    diff --git a/trunk/target/linux/x86/base-files/lib/upgrade/platform.sh b/trunk/target/linux/x86/base-files/lib/upgrade/platform.sh
    index d765c5e..ca5d2c6 100644
    a b platform_do_upgrade() { 
    1717        sync 
    1818        grep -q -e "jffs2" -e "squashfs" /proc/cmdline \ 
    1919                && ROOTFS="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "block2mtd.block2mtd") { print substr($2,1,index($2, ",")-1) }' < /proc/cmdline)" \ 
    20                 || ROOTFS="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "root") { print $2 ) }' < /proc/cmdline)" 
     20                || ROOTFS="$(awk 'BEGIN { RS=" "; FS="="; } ($1 == "root") { print $2 }' < /proc/cmdline)" 
    2121        [ -b ${ROOTFS%[0-9]} ] && get_image "$1" > ${ROOTFS%[0-9]} 
    2222} 
    2323