openwrt/package/system/fstools/files
Matthias Badaire cf8483cb4f fstools: media change detection (eg:sdcard) using kernel polling
Linux kernel has a polling mechanism that can be activated by changing
the parameter /sys/module/block/parameters/events_dfl_poll_msecs which
is deactivated by default or the /sys/block/[device]/events_poll_msecs
for one device.

This patch set the events_poll_msecs when a disk is inserted.
Once the media disk change event is sent by the kernel then we force a
re-read of the devices using /sbin/block info.

With this patch, insertion and ejection of sd card will automatically
generate partition devices in /dev.

Signed-off-by: Matthias Badaire <mbadaire@gmail.com>
[rewrap commit message, fix bashisms, fix non-matching condition,
 bump pkg release]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-01-22 08:49:36 +01:00
..
blockd.init fstools: add blockd 2017-03-06 07:16:50 +01:00
fstab.default fstools: fix exit code of uci-defaults script 2015-01-28 13:44:37 +00:00
fstab.init fstools: remove bogus warning in the fstab script 2016-06-13 22:51:43 +02:00
media-change.hotplug fstools: media change detection (eg:sdcard) using kernel polling 2019-01-22 08:49:36 +01:00
mount.hotplug fstools: filter unknown action in mount.hotplug script 2018-10-07 21:34:13 +02:00
snapshot fstools: snapshot: handle jffs2 conversion using upgraded 2017-05-29 23:50:33 +02:00