vnstat2: add hotplug script for adding interfaces
authorJan Hoffmann <jan@3e8.eu>
Wed, 27 Oct 2021 21:55:28 +0000 (23:55 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 18 Feb 2022 22:25:53 +0000 (23:25 +0100)
commit42f35cdda75ea3322e0f41996e71918b53def1bb
tree002d08e04e77e0744b5297f97c2c8b97ca427e01
parentf8820d2aeb650d215035e87fd59acc0020bbe12c
vnstat2: add hotplug script for adding interfaces

If an interface doesn't exist yet when vnStat is started, it won't be
monitored, as only existing interfaces can be added to the database via
the vnstat command.

This adds a hotplug script which adds any configured interfaces to the
vnStat database when it goes up.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
(cherry picked from commit f9ea8142601cee5542f9ba0f4e5a24e53ab59a6d)
net/vnstat2/Makefile
net/vnstat2/files/vnstat.hotplug [new file with mode: 0644]