[package] iwinfo: iwinfo_hardware_id_from_mtd() never writes, so do not request write...
[openwrt.git] / package / block-mount / files / 40-mount
index 0d4f669..5118d9c 100644 (file)
@@ -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
This page took 0.0235 seconds and 4 git commands to generate.