unmountflash would make /dev/mtdblock4 on / ro, this only affects a turnup
authorJohn Bowler <jbowler@nslu2-linux.org>
Tue, 19 Jul 2005 17:24:13 +0000 (17:24 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 19 Jul 2005 17:24:13 +0000 (17:24 +0000)
when the flash file system is mounted on /, but it causes the edit of the
/linuxrc to fail.

packages/openslug-init/openslug-init-0.10/functions
packages/openslug-init/openslug-init_0.10.bb

index 43b1099..55f3397 100755 (executable)
@@ -307,8 +307,9 @@ umountflash() {
 
                # handle this entry, since this is currently only used for unmounting
                # the flash root partition we know a file which must exist...
-               case "$type" in
-               jffs2)  test "$(devio "<<$mp/etc/init.d/sysconfsetup" prd 2>/dev/null)" -ne "$ffsno" ||
+               case "$mp/$type" in
+               //jffs2);; # skip /
+               */jffs2)test "$(devio "<<$mp/etc/init.d/sysconfsetup" prd 2>/dev/null)" -ne "$ffsno" ||
                        umount "$mp" || {
                                echo "$0: $mp: unable to umount $ffsdev" >&2
                                return 1
index fd2080f..e26b118 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "console/network"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r40"
+PR = "r41"
 
 SRC_URI = "file://linuxrc \
           file://boot/flash \