summaryrefslogtreecommitdiff
path: root/net/mwan3-luci/files/etc/uci-defaults/mwan3
blob: a19d4cb25f957e9c5292dffe181414132b649e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# delete existing mwan3 ucitrack entry and add new entry
uci -q batch <<-EOF >/dev/null
	del ucitrack.@mwan3[-1]
	add ucitrack mwan3
	set ucitrack.@mwan3[-1].exec="/etc/init.d/mwan3 restart"
	commit ucitrack
EOF

# make controller file addition take effect without system restart
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache

exit 0