openwrt/package/system
Matthias Badaire fc39d5fc45 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>

(cherry picked from commit cf8483cb4f)
2019-06-21 14:17:22 +02:00
..
ca-certificates ca-certificates: update to version 20190110 2019-04-20 13:03:40 +02:00
fstools fstools: media change detection (eg:sdcard) using kernel polling 2019-06-21 14:17:22 +02:00
fwtool fwtool: add utility for appending and extracting firmware metadata/signatures 2016-11-19 11:24:09 +01:00
iucode-tool tools: add iucode-tool 2018-02-11 14:39:16 +01:00
mtd mtd: improve check for TRX header being already fixed 2018-07-16 23:18:45 +02:00
openwrt-keyring openwrt-keyring: bundle latest usign certificates 2018-05-20 19:39:58 +02:00
opkg opkg: update to latest Git head 2019-01-22 13:14:33 +01:00
procd procd: update to the latest version 2018-03-28 17:42:40 +08:00
rpcd rpcd: fix init script reload action 2019-06-06 11:29:15 +02:00
ubox logd: create log directory for log_file 2018-06-07 17:20:40 +02:00
ubus ubus: update to latest git HEAD 2018-12-18 17:22:05 +01:00
uci uci: fix heap use after free (FS#2288) 2019-05-23 22:09:09 +02:00
usign treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
zram-swap zram-swap: bump pkg version 2018-12-18 17:22:05 +01:00