summaryrefslogtreecommitdiffstats
path: root/package/block-mount/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-13 15:31:31 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-13 15:31:31 +0000
commitf86677c02e2a61687ade7786f464afaf0cf03c8e (patch)
tree23acb9fcee076c6560bd414df84591f0e8ea346f /package/block-mount/files
parentae888d8dfb2b53e61d847ced35fb3b22d4dd329d (diff)
block-mount: do not auto-mount anonymous mtdblock devices (fixes #10960, #10850)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30501 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/block-mount/files')
-rw-r--r--package/block-mount/files/40-mount9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/block-mount/files/40-mount b/package/block-mount/files/40-mount
index 0d4f66940..5118d9c10 100644
--- a/package/block-mount/files/40-mount
+++ b/package/block-mount/files/40-mount
@@ -69,8 +69,13 @@ if [ `basename $blkdev` != "block" ]; then
}
grep -q "/dev/$device" /proc/swaps || grep -q "/dev/$device" /proc/mounts || {
- [ "$anon_mount" -eq 1 ] && [ -z "$use_device" ] && {
- ( mkdir -p /mnt/$device && mount /dev/$device /mnt/$device ) 2>&1 | tee /proc/self/fd/2 | logger -t 'fstab'
+ [ "$anon_mount" -eq 1 -a -z "$use_device" ] && {
+ case "$device" in
+ mtdblock*) ;;
+ *)
+ ( mkdir -p /mnt/$device && mount /dev/$device /mnt/$device ) 2>&1 | tee /proc/self/fd/2 | logger -t 'fstab'
+ ;;
+ esac
}
}
reset_dev_section_cb