X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/faf7173b4df3a152dbdc574751078b359c116d5b..77ec3b2de9bb1880b258ec6aaf4949f146f6fd8d:/package/block-mount/files/40-mount?ds=sidebyside 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