don't try to automount loopback devices (#1011)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Dec 2006 05:29:52 +0000 (05:29 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Dec 2006 05:29:52 +0000 (05:29 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5877 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/hotplug.d/block/01-mount

index 5ed3ef0..a34580c 100755 (executable)
@@ -13,7 +13,7 @@ add)
        }; done
        echo
        
-       [ ${DEV%%[0-9]} != ${DEV} ] && {
+       [ ${DEV%%[0-9]} != ${DEV} -a ${DEV%%[0-9]} != "loop" ] && {
                mkdir -p /tmp/$DEV
                mount /dev/$DEV /tmp/$DEV -t auto -o sync
        }
This page took 0.023511 seconds and 4 git commands to generate.