mdev: implement hotplug support.
authorIsaac Dunham <ibid.ag@gmail.com>
Sat, 18 Apr 2015 18:25:06 +0000 (18:25 +0000)
committerRob Landley <rob@landley.net>
Sun, 19 Apr 2015 06:24:42 +0000 (01:24 -0500)
commit3cf9b08cc9ebeddc449638608f7a28c4c4ba20f9
tree7c2ab09cf316b76f305db2c1b7a2b097aa0ead7a
parent957c3f7eaa4b56d6470ce8ef382b132c1aae9ca0
mdev: implement hotplug support.

Use DEVPATH, DEVNAME, MAJOR, MINOR, and SUBSYSTEM instead of
checking the current path and reading .../dev.
While we're here, probe for partitions in block devices.

This uses a very lame check for ACTION (which can be add, remove,
or change): if it is "remove", then unlink the device.
toys/pending/mdev.c