packages/net/vnstat/files/vnstat.defaults
jow 2745bc1445 [packages] vnstat: defer postinstall in host installation case
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28187 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-06 22:04:38 +00:00

13 lines
193 B
Bash

#!/bin/sh
wan="$(uci -P/var/state get network.wan.ifname)"
if [ -n "$wan" ]; then
uci -q batch <<-EOF >/dev/null
add_list vnstat.@vnstat[-1].interface=$wan
commit vnstat
EOF
fi
exit 0