source: branches/packages_10.03.1/net/vnstat/files/vnstat.defaults @ 28188

Last change on this file since 28188 was 28188, checked in by jow, 5 years ago

[backfire] merge r28187

File size: 193 bytes
Line 
1#!/bin/sh
2
3wan="$(uci -P/var/state get network.wan.ifname)"
4
5if [ -n "$wan" ]; then
6        uci -q batch <<-EOF >/dev/null
7                add_list vnstat.@vnstat[-1].interface=$wan
8                commit vnstat
9        EOF
10fi
11
12exit 0
Note: See TracBrowser for help on using the repository browser.