diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2005-07-19 17:24:13 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-19 17:24:13 +0000 |
commit | 0ab7f05441d3c14635f711518792e0ef4058ccb7 (patch) | |
tree | ebb699e15bf7bdef3001db7507a80523f3bd38e3 /packages/openslug-init/openslug-init-0.10 | |
parent | a004b4963180707c55da6ffb4199b28a67c72868 (diff) |
unmountflash would make /dev/mtdblock4 on / ro, this only affects a turnup
when the flash file system is mounted on /, but it causes the edit of the
/linuxrc to fail.
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10')
-rwxr-xr-x | packages/openslug-init/openslug-init-0.10/functions | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/functions b/packages/openslug-init/openslug-init-0.10/functions index 43b109977d..55f3397462 100755 --- a/packages/openslug-init/openslug-init-0.10/functions +++ b/packages/openslug-init/openslug-init-0.10/functions @@ -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 |