Changeset 25269


Ignore:
Timestamp:
2011-02-01T07:28:59+01:00 (6 years ago)
Author:
cshore
Message:

[package]: block-extroot: Fixed the functionality that disables the extroot after a firmware upgrade (which is necessary because of possible kernel version or uClibc version conflicts). It was implented but actually failed to disable extroot when it should have. This commit fixes that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/block-extroot/files/55_determine_extroot_sysupgrade

    r24230 r25269  
    1414        fi 
    1515 
     16        local er_overlay_file="/overlay/etc/extroot.md5sum" 
     17 
    1618        local er_extroot_overlay_md5sum 
    17         if [ -f "/overlay/etc/extroot.md5sum" ]; then 
    18                 er_extroot_overlay_md5sum="$(cat /overlay/.extroot.md5sum)" 
     19        if [ -f "$er_overlay_file" ]; then 
     20                er_extroot_overlay_md5sum="$(cat $er_overlay_file)" 
    1921        fi 
    2022 
    2123        if [ -z "$er_extroot_overlay_md5sum" ]; then 
    22                 cat $er_md5sum_file >/overlay/.extroot.md5sum 
     24                cat $er_md5sum_file >$er_overlay_file 
    2325        elif [ "$er_extroot_overlay_md5sum" != "$er_extroot_md5sum" ]; then 
    2426                pi_extroot_mount_success="false" 
Note: See TracChangeset for help on using the changeset viewer.