[OpenWrt-Devel] [PATCH] block: generate hotplug.d mount events

Rafał Miłecki zajec5 at gmail.com
Thu Dec 6 00:57:10 EST 2018

On Wed, 5 Dec 2018 at 23:30, Alberto Bursi <bobafetthotmail at gmail.com> wrote:
> On 05/12/18 22:35, Rafał Miłecki wrote:
> > From: Rafał Miłecki <rafal at milecki.pl>
> >
> > This is what was implemented in mountd and what some scripts used to
> > use. It's a pretty generic solution for managing software that may use
> > e.g. USB storage.
> Could you explain a bit more about what is this doing instead of just
> mentioning mountd?
> There is pretty scarce info about mountd.

This generates following hotplug.d "mount" events:
1) "add" when block device gets mounted
2) "remove" when block device gets unmounted

It allows one to put custom scripts/executables in the
/etc/hotplug.d/mount/ and react to appearing/disappearing mount


openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list