summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-noddos/root/etc/uci-defaults/40_luci-noddos
blob: 17abbc41ca8e71fee3f812c841b015f159781376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Copyright (C) 2017 Steven Hessing (steven.hessing@live.com)
# This is free software, licensed under the GNU General Public License v3

uci -q batch <<-EOF >/dev/null
	delete ucitrack.@noddos[-1]
	add ucitrack noddos
	set ucitrack.@noddos[-1].init=noddos
	commit ucitrack
EOF

rm -f /tmp/luci-indexcache
exit 0