From: Felix Fietkau Date: Wed, 20 Dec 2006 05:29:52 +0000 (+0000) Subject: don't try to automount loopback devices (#1011) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=354a4b31a4da3a2a99acf468847a4f25f3ff1904;p=openwrt%2Fstaging%2Fnbd.git don't try to automount loopback devices (#1011) SVN-Revision: 5877 --- 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 5ed3ef060b..a34580cb97 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 }