luci/applications/luci-app-nlbwmon/root/etc/uci-defaults/40_luci-nlbwmon
Jo-Philipp Wich 0fe93fc3a3 luci-app-nlbwmon: new package
This commit introduces luci-app-nlbwmon, a frontend for nlbwmon, the
lightweight NetLink BandWidth Montor.

The nlbwmon daemon gathers per-host traffic statistics by querying netlink
accounting data. Due to this approach, the executable is very small and does
not rely on libpcap and CPU intensive raw sockets to monitor traffic.

Depends on PR https://github.com/openwrt/packages/pull/4646

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-28 16:26:42 +02:00

11 lines
190 B
Bash

#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@nlbwmon[-1]
add ucitrack nlbwmon
set ucitrack.@nlbwmon[-1].init=nlbwmon
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0