From 8eaac4b637d989680ad86dc3e84b0f3b547c1619 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 27 Jan 2016 16:47:23 +0100 Subject: Use numeric prefixes for uci-defaults scripts Signed-off-by: Jo-Philipp Wich --- .../root/etc/uci-defaults/40_luci-statistics | 16 ++++++++++++++++ .../root/etc/uci-defaults/luci-statistics | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100755 applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics delete mode 100755 applications/luci-app-statistics/root/etc/uci-defaults/luci-statistics (limited to 'applications/luci-app-statistics/root/etc/uci-defaults') diff --git a/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics b/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics new file mode 100755 index 0000000000..28e35298a2 --- /dev/null +++ b/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics @@ -0,0 +1,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 diff --git a/applications/luci-app-statistics/root/etc/uci-defaults/luci-statistics b/applications/luci-app-statistics/root/etc/uci-defaults/luci-statistics deleted file mode 100755 index 28e35298a2..0000000000 --- a/applications/luci-app-statistics/root/etc/uci-defaults/luci-statistics +++ /dev/null @@ -1,16 +0,0 @@ -#!/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 -- cgit v1.2.3