[package] extroot: block-mount block-extroot: Added ability to do a whole disk extroo...
[openwrt/svn-archive/archive.git] / package / block-mount / files / mount.sh
index 3056c73aa94402edf6a8e657573a8a8ac1dc4a9a..d82a927835ef073ae9f85a1725f7b8f2b887556c 100644 (file)
@@ -41,10 +41,14 @@ config_mount_by_section() {
                                if [ "$find_rootfs" = "1" ]; then
                                    if [ "$is_rootfs" -eq 1 ]; then
                                        target=/overlay
+                                   elif [ "$target" = "/" ]; then
+                                       target=/rom
                                    fi
                                else
                                    if [ "$is_rootfs" -eq 1 ] || [ "$target" = "/overlay" ]; then
                                        target=/tmp/overlay-disabled
+                                   elif [ "$target" = "/" ] || [ "$target" = "/rom" ]; then
+                                       target="/tmp/rom-disabled"
                                    fi
                                fi
                                
@@ -59,6 +63,9 @@ config_mount_by_section() {
                    [ "$target" = "/overlay" ] && {
                        rootfs_found=1
                    }
+                   [ "$target" = "/rom" ] && {
+                       rootfs_found=1
+                   }
                }
                return 0        
        }