luci-statistics 360 B

12345678910111213141516
  1. #!/bin/sh
  2. # register commit handler
  3. uci -q batch <<-EOF >/dev/null
  4. delete ucitrack.@luci_statistics[-1]
  5. add ucitrack luci_statistics
  6. set ucitrack.@luci_statistics[-1].init=luci_statistics
  7. commit ucitrack
  8. EOF
  9. # symlink for busybox httpd
  10. [ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \
  11. ln -s /tmp/rrdimg /www/rrdimg
  12. rm -f /tmp/luci-indexcache
  13. exit 0