diff options
author | cshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-03-13 09:24:24 +0000 |
---|---|---|
committer | cshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-03-13 09:24:24 +0000 |
commit | d4627d82f4310994d6b14123a99a2c195de6320f (patch) | |
tree | 2ecde042e1f9ca33ce04a4ffcdd521a9c4fb3bc1 /package/block-extroot/files/50_determine_usb_root | |
parent | d011a32a8b64a07e70bff72d767bebf464cf4487 (diff) |
[package] extroot: block-mount block-extroot: Added ability to do a whole disk extroot instead of only an overlay-based extroot.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26109 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/block-extroot/files/50_determine_usb_root')
-rw-r--r-- | package/block-extroot/files/50_determine_usb_root | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/block-extroot/files/50_determine_usb_root b/package/block-extroot/files/50_determine_usb_root index e87855c2a..8c5841e32 100644 --- a/package/block-extroot/files/50_determine_usb_root +++ b/package/block-extroot/files/50_determine_usb_root @@ -37,10 +37,17 @@ determine_external_root() { } config_load fstab config_foreach config_mount_by_section mount 1 + ER_OVERLAY_ROM="/no-extroot" [ "$rootfs_found" = "1" ] && grep -q ' /overlay ' /proc/mounts && { pi_extroot_mount_success=true pi_mount_skip_next=false + ER_OVERLAY_ROM="/overlay" + } + [ "$rootfs_found" = "1" ] && grep -q ' /rom ' /proc/mounts && { + pi_extroot_mount_success=true + pi_mount_skip_next=false + ER_OVERLAY_ROM="/rom" } } UCI_CONFIG_DIR="$OLD_UCI_CONFIG_DIR" |