1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 21:22:48 +02:00

[package]: block-extroot. Merged r25269. Fixed the (wanted) disabling of extroot after a sysupgrade.

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25270 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cshore 2011-02-01 07:43:21 +00:00
parent 6f0d16ded6
commit 8a44ee7dab

View File

@ -13,13 +13,15 @@ check_set_md5sum() {
er_extroot_md5sum="$(cat $er_md5sum_file)"
fi
local er_overlay_file="/overlay/etc/extroot.md5sum"
local er_extroot_overlay_md5sum
if [ -f "/overlay/etc/extroot.md5sum" ]; then
er_extroot_overlay_md5sum="$(cat /overlay/.extroot.md5sum)"
if [ -f "$er_overlay_file" ]; then
er_extroot_overlay_md5sum="$(cat $er_overlay_file)"
fi
if [ -z "$er_extroot_overlay_md5sum" ]; then
cat $er_md5sum_file >/overlay/.extroot.md5sum
cat $er_md5sum_file >$er_overlay_file
elif [ "$er_extroot_overlay_md5sum" != "$er_extroot_md5sum" ]; then
pi_extroot_mount_success="false"
mkdir -p /tmp/overlay-disabled