aboutsummaryrefslogtreecommitdiffstats
path: root/package/block-extroot/files/50_determine_usb_root
diff options
context:
space:
mode:
authorDaniel Dickinson <daniel@cshore.neomailbox.net>2011-03-13 09:24:24 +0000
committerDaniel Dickinson <daniel@cshore.neomailbox.net>2011-03-13 09:24:24 +0000
commit2edddd450b0610a08c30cf3be6504f8199df16f8 (patch)
tree2ecde042e1f9ca33ce04a4ffcdd521a9c4fb3bc1 /package/block-extroot/files/50_determine_usb_root
parent72748339e82bbf5242e74801568282529b465ee1 (diff)
downloadmaster-187ad058-2edddd450b0610a08c30cf3be6504f8199df16f8.tar.gz
master-187ad058-2edddd450b0610a08c30cf3be6504f8199df16f8.tar.bz2
master-187ad058-2edddd450b0610a08c30cf3be6504f8199df16f8.zip
[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_root7
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 e87855c2a7..8c5841e32b 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"