openwrt/package
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
..
base-files base-files: fix uci led oneshot/timer trigger 2019-06-20 17:41:42 +02:00
boot uboot-fritz4040: update PKG_MIRROR_HASH 2019-06-15 19:05:30 +02:00
devel strace: Update to 4.22 2018-12-18 17:22:08 +01:00
firmware ath10k: update QCA4019 firmware 2018-12-27 16:38:13 +01:00
kernel mac80211: brcmfmac: backport important fixes from kernel 5.2 2019-06-16 21:51:50 +02:00
libs openssl: update to 1.0.2s 2019-06-01 15:50:20 +02:00
network hostapd: fix multiple security problems 2019-06-21 10:29:23 +02:00
system fstools: media change detection (eg:sdcard) using kernel polling 2019-06-21 14:17:22 +02:00
utils busybox: add missing install dir 2019-03-11 17:07:29 +01:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00