block-extroot: make overlay mount check more explicit, it wrongly detected /tmp/overl...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 23 Mar 2010 17:08:35 +0000 (17:08 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 23 Mar 2010 17:08:35 +0000 (17:08 +0000)
SVN-Revision: 20390

package/block-extroot/files/50_determine_usb_root

index 192990c..0de9be3 100644 (file)
@@ -38,7 +38,7 @@ determine_external_root() {
                config_load fstab
                config_foreach config_mount_by_section mount 1
                
-               [ "$rootfs_found" = "1" ] && grep -q /overlay /proc/mounts && { 
+               [ "$rootfs_found" = "1" ] && grep -q ' /overlay ' /proc/mounts && { 
                        pi_extroot_mount_success=true
                        pi_mount_skip_next=false
                }