X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3c0d0b56fb7f0d5458bc25c4854f0dbf06a82e0e..afacc5b25a838a15a7a2d3854198aa8fb4c0b56f:/package/base-files/files/etc/hotplug.d/block/01-mount?ds=sidebyside

diff --git a/package/base-files/files/etc/hotplug.d/block/01-mount b/package/base-files/files/etc/hotplug.d/block/01-mount
index 5ed3ef060..a34580cb9 100755
--- a/package/base-files/files/etc/hotplug.d/block/01-mount
+++ b/package/base-files/files/etc/hotplug.d/block/01-mount
@@ -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
 	}