summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root/etc/uci-defaults/luci-statistics
blob: 28e35298a26071ca4ad93fc5af5ef581b0a6e4f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

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

# symlink for busybox httpd
[ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \
	ln -s /tmp/rrdimg /www/rrdimg

rm -f /tmp/luci-indexcache
exit 0