diff options
Diffstat (limited to 'net/vnstat2/files/vnstat.hotplug')
-rw-r--r-- | net/vnstat2/files/vnstat.hotplug | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/net/vnstat2/files/vnstat.hotplug b/net/vnstat2/files/vnstat.hotplug deleted file mode 100644 index 339c0ac82..000000000 --- a/net/vnstat2/files/vnstat.hotplug +++ /dev/null @@ -1,23 +0,0 @@ -/etc/init.d/vnstat running || exit 0 -[ "$ACTION" = "ifup" ] || exit 0 - -. /lib/functions.sh - -check_iface() { - local iface="$1" - - [ "$iface" = "$DEVICE" ] || return - - /usr/bin/vnstat --add -i "$iface" >/dev/null - - exit 0 -} - -check_ifaces() { - local cfg="$1" - - config_list_foreach "$cfg" interface check_iface -} - -config_load vnstat -config_foreach check_ifaces vnstat |