From: nbd Date: Wed, 20 Dec 2006 05:29:52 +0000 (+0000) Subject: don't try to automount loopback devices (#1011) X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/afacc5b25a838a15a7a2d3854198aa8fb4c0b56f?hp=799bc42c35fe59194ed18050828719ce13f52ac6 don't try to automount loopback devices (#1011) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5877 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 }