diff options
Diffstat (limited to 'package/system/fstools/files/media-change.hotplug')
-rw-r--r-- | package/system/fstools/files/media-change.hotplug | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/system/fstools/files/media-change.hotplug b/package/system/fstools/files/media-change.hotplug new file mode 100644 index 0000000000..30fc3d5c4f --- /dev/null +++ b/package/system/fstools/files/media-change.hotplug @@ -0,0 +1,8 @@ +[ -n "$DISK_MEDIA_CHANGE" ] && /sbin/block info + +if [ "$ACTION" = "add" -a "$DEVTYPE" = "disk" ]; then + case "$DEVNAME" in + mtd*) : ;; + *) echo 2000 > /sys/block/$DEVNAME/events_poll_msecs ;; + esac +fi |