vnstat2: add hotplug script for adding interfaces
authorJan Hoffmann <jan@3e8.eu>
Wed, 27 Oct 2021 21:55:28 +0000 (23:55 +0200)
committerRosen Penev <rosenp@gmail.com>
Thu, 28 Oct 2021 08:31:18 +0000 (01:31 -0700)
commitf9ea8142601cee5542f9ba0f4e5a24e53ab59a6d
tree70aed9e74360b0f216f25deb6446c77770e2c4b7
parentecae7dedde0ccd2a636e93620ced41bca807d405
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>
net/vnstat2/Makefile
net/vnstat2/files/vnstat.hotplug [new file with mode: 0644]