summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-20 05:29:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-20 05:29:52 +0000
commit354a4b31a4da3a2a99acf468847a4f25f3ff1904 (patch)
tree8d37f8e92a8f460ceefce91fe8cd0d000fa80025 /package/base-files
parent4bef6e13c29575235f074d1c9333d30e251dc500 (diff)
downloadmtk-20170518-354a4b31a4da3a2a99acf468847a4f25f3ff1904.zip
mtk-20170518-354a4b31a4da3a2a99acf468847a4f25f3ff1904.tar.gz
mtk-20170518-354a4b31a4da3a2a99acf468847a4f25f3ff1904.tar.bz2
don't try to automount loopback devices (#1011)
SVN-Revision: 5877
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/hotplug.d/block/01-mount2
1 files changed, 1 insertions, 1 deletions
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 5ed3ef0..a34580c 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
}