--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@ahcpd[-1]
+ add ucitrack ahcpd
+ set ucitrack.@ahcpd[-1].init=ahcpd
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@ahcpd[-1]
- add ucitrack ahcpd
- set ucitrack.@ahcpd[-1].init=ahcpd
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@asterisk[-1]
+ add ucitrack asterisk
+ set ucitrack.@asterisk[-1].init=asterisk
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@asterisk[-1]
- add ucitrack asterisk
- set ucitrack.@asterisk[-1].init=asterisk
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+# no longer needed for "Save and Apply" to restart ddns
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@ddns[-1]
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-# no longer needed for "Save and Apply" to restart ddns
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@ddns[-1]
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+# needed for "Save and Apply" to restart dump1090
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@dump1090[-1]
+ add ucitrack dump1090
+ set ucitrack.@dump1090[-1].init="dump1090"
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-# needed for "Save and Apply" to restart dump1090
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@dump1090[-1]
- add ucitrack dump1090
- set ucitrack.@dump1090[-1].init="dump1090"
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+rm -f /tmp/luci-indexcache
+++ /dev/null
-#!/bin/sh
-rm -f /tmp/luci-indexcache
--- /dev/null
+#!/bin/sh
+#-- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz>
+#-- Licensed to the public under the GNU General Public License v2.
+. /lib/functions/network.sh
+
+uci batch <<EOF
+ add ucitrack fwknopd
+ set ucitrack.@fwknopd[-1].init=fwknopd
+ commit ucitrack
+EOF
+
+uci delete fwknopd.@access[0].KEY
+uci delete fwknopd.@access[0].HMAC_KEY
+uci set fwknopd.@access[0].keytype='Base 64 key'
+uci set fwknopd.@access[0].hkeytype='Base 64 key'
+uci set fwknopd.@access[0].KEY_BASE64=`fwknopd --key-gen | awk '/^KEY/ {print $2;}'`
+uci set fwknopd.@access[0].HMAC_KEY_BASE64=`fwknopd --key-gen | awk '/^HMAC/ {print $2;}'`
+uci set fwknopd.@config[0].ENABLE_IPT_FORWARDING='y'
+
+uci commit fwknopd
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-#-- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz>
-#-- Licensed to the public under the GNU General Public License v2.
-. /lib/functions/network.sh
-
-uci batch <<EOF
- add ucitrack fwknopd
- set ucitrack.@fwknopd[-1].init=fwknopd
- commit ucitrack
-EOF
-
-uci delete fwknopd.@access[0].KEY
-uci delete fwknopd.@access[0].HMAC_KEY
-uci set fwknopd.@access[0].keytype='Base 64 key'
-uci set fwknopd.@access[0].hkeytype='Base 64 key'
-uci set fwknopd.@access[0].KEY_BASE64=`fwknopd --key-gen | awk '/^KEY/ {print $2;}'`
-uci set fwknopd.@access[0].HMAC_KEY_BASE64=`fwknopd --key-gen | awk '/^HMAC/ {print $2;}'`
-uci set fwknopd.@config[0].ENABLE_IPT_FORWARDING='y'
-
-uci commit fwknopd
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@hd-idle[-1]
+ add ucitrack hd-idle
+ set ucitrack.@hd-idle[-1].init=hd-idle
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@hd-idle[-1]
- add ucitrack hd-idle
- set ucitrack.@hd-idle[-1].init=hd-idle
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+/etc/init.d/minidlna enabled && {
+ /etc/init.d/minidlna stop
+ /etc/init.d/minidlna disable
+}
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.minidlna
+ set ucitrack.minidlna=minidlna
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-/etc/init.d/minidlna enabled && {
- /etc/init.d/minidlna stop
- /etc/init.d/minidlna disable
-}
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.minidlna
- set ucitrack.minidlna=minidlna
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@mjpg-streamer[-1]
+ add ucitrack mjpg-streamer
+ set ucitrack.@mjpg-streamer[-1].init=mjpg-streamer
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@mjpg-streamer[-1]
- add ucitrack mjpg-streamer
- set ucitrack.@mjpg-streamer[-1].init=mjpg-streamer
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@mmc_over_gpio[-1]
+ add ucitrack mmc_over_gpio
+ set ucitrack.@mmc_over_gpio[-1].init=mmc_over_gpio
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@mmc_over_gpio[-1]
- add ucitrack mmc_over_gpio
- set ucitrack.@mmc_over_gpio[-1].init=mmc_over_gpio
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@olsrd[-1]
+ add ucitrack olsrd
+ set ucitrack.@olsrd[-1].init=olsrd
+ delete ucitrack.@olsrd6[-1]
+ add ucitrack olsrd6
+ set ucitrack.@olsrd6[-1].init=olsrd6
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@olsrd[-1]
- add ucitrack olsrd
- set ucitrack.@olsrd[-1].init=olsrd
- delete ucitrack.@olsrd6[-1]
- add ucitrack olsrd6
- set ucitrack.@olsrd6[-1].init=olsrd6
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete citrack.@freifunk_p2pblock[-1]
+ add ucitrack freifunk_p2pblock
+ set ucitrack.@freifunk_p2pblock[-1].init=freifunk-p2pblock
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete citrack.@freifunk_p2pblock[-1]
- add ucitrack freifunk_p2pblock
- set ucitrack.@freifunk_p2pblock[-1].init=freifunk-p2pblock
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@p910nd[-1]
+ add ucitrack p910nd
+ set ucitrack.@p910nd[-1].init=p910nd
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@p910nd[-1]
- add ucitrack p910nd
- set ucitrack.@p910nd[-1].init=p910nd
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@polipo[-1]
+ add ucitrack polipo
+ set ucitrack.@polipo[-1].init=polipo
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@polipo[-1]
- add ucitrack polipo
- set ucitrack.@polipo[-1].init=polipo
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+# no longer needed for "Save and Apply" to restart privoxy
+# luci-app-privoxy calls /etc/init.d/privoxy reload
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@privoxy[-1]
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+
+exit 0
+++ /dev/null
-#!/bin/sh
-
-# no longer needed for "Save and Apply" to restart privoxy
-# luci-app-privoxy calls /etc/init.d/privoxy reload
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@privoxy[-1]
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-
-exit 0
--- /dev/null
+#!/bin/sh
+
+# no longer needed for "Save and Apply" to restart radicale
+# luci-app-radicale calls /etc/init.d/radicale reload
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@radicale[-1]
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+
+exit 0
+++ /dev/null
-#!/bin/sh
-
-# no longer needed for "Save and Apply" to restart radicale
-# luci-app-radicale calls /etc/init.d/radicale reload
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@radicale[-1]
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@radvd[-1]
+ add ucitrack radvd
+ set ucitrack.@radvd[-1].init=radvd
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@radvd[-1]
- add ucitrack radvd
- set ucitrack.@radvd[-1].init=radvd
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@shadowsocks-libev[-1]
+ add ucitrack shadowsocks-libev
+ set ucitrack.@shadowsocks-libev[-1].init=shadowsocks-libev
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@shadowsocks-libev[-1]
- add ucitrack shadowsocks-libev
- set ucitrack.@shadowsocks-libev[-1].init=shadowsocks-libev
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+# needed for "Save and Apply" to restart shairplay
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@shairplay[-1]
+ add ucitrack shairplay
+ set ucitrack.@shairplay[-1].init="shairplay"
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-# needed for "Save and Apply" to restart shairplay
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@shairplay[-1]
- add ucitrack shairplay
- set ucitrack.@shairplay[-1].init="shairplay"
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+# needed for "Save and Apply" to restart shairport
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@shairport[-1]
+ add ucitrack shairport
+ set ucitrack.@shairport[-1].init="shairport"
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-# needed for "Save and Apply" to restart shairport
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@shairport[-1]
- add ucitrack shairport
- set ucitrack.@shairport[-1].init="shairport"
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/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
+++ /dev/null
-#!/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
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@tranmsmission[-1]
+ add ucitrack transmission
+ set ucitrack.@transmission[-1].init=transmission
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@tranmsmission[-1]
- add ucitrack transmission
- set ucitrack.@transmission[-1].init=transmission
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+# needed for "Save and Apply" to restart udpxy
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@udpxy[-1]
+ add ucitrack udpxy
+ set ucitrack.@udpxy[-1].init="udpxy"
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-# needed for "Save and Apply" to restart udpxy
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@udpxy[-1]
- add ucitrack udpxy
- set ucitrack.@udpxy[-1].init="udpxy"
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@ushare[-1]
+ add ucitrack ushare
+ set ucitrack.@ushare[-1].init=ushare
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@ushare[-1]
- add ucitrack ushare
- set ucitrack.@ushare[-1].init=ushare
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@vnstat[-1]
+ add ucitrack vnstat
+ set ucitrack.@vnstat[-1].init=vnstat
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@vnstat[-1]
- add ucitrack vnstat
- set ucitrack.@vnstat[-1].init=vnstat
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ add ucitrack system
+ set ucitrack.@system[-1].init=watchcat
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- add ucitrack system
- set ucitrack.@system[-1].init=watchcat
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@wshaper[-1]
+ set ucitrack.wshaper="wshaper"
+ set ucitrack.wshaper.exec='/etc/init.d/wshaper start'
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0
+++ /dev/null
-#!/bin/sh
-
-uci -q batch <<-EOF >/dev/null
- delete ucitrack.@wshaper[-1]
- set ucitrack.wshaper="wshaper"
- set ucitrack.wshaper.exec='/etc/init.d/wshaper start'
- commit ucitrack
-EOF
-
-rm -f /tmp/luci-indexcache
-exit 0
--- /dev/null
+#!/bin/sh
+tables="/etc/iproute2/rt_tables"
+test -d /etc/iproute2/ || mkdir -p /etc/iproute2/
+grep -q "gw-check" $tables || echo "200 gw-check" >> $tables
+test -f /etc/crontabs/root || touch /etc/crontabs/root
+grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root
+/etc/init.d/cron restart
+++ /dev/null
-#!/bin/sh
-tables="/etc/iproute2/rt_tables"
-test -d /etc/iproute2/ || mkdir -p /etc/iproute2/
-grep -q "gw-check" $tables || echo "200 gw-check" >> $tables
-test -f /etc/crontabs/root || touch /etc/crontabs/root
-grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root
-/etc/init.d/cron restart
--- /dev/null
+#!/bin/sh
+test -f /etc/crontabs/root || touch /etc/crontabs/root
+SEED="$( dd if=/dev/urandom bs=2 count=1 2>&- | hexdump | if read line; then echo 0x${line#* }; fi )"
+MIN="$(( $SEED % 59 ))"
+grep -q "ff_mapupdate.sh" /etc/crontabs/root || echo "$MIN * * * * /usr/sbin/ff_mapupdate.sh" >> /etc/crontabs/root
+/etc/init.d/cron restart
+++ /dev/null
-#!/bin/sh
-test -f /etc/crontabs/root || touch /etc/crontabs/root
-SEED="$( dd if=/dev/urandom bs=2 count=1 2>&- | hexdump | if read line; then echo 0x${line#* }; fi )"
-MIN="$(( $SEED % 59 ))"
-grep -q "ff_mapupdate.sh" /etc/crontabs/root || echo "$MIN * * * * /usr/sbin/ff_mapupdate.sh" >> /etc/crontabs/root
-/etc/init.d/cron restart
--- /dev/null
+#!/bin/sh
+uci batch <<-EOF
+ set luci.themes.Bootstrap=/luci-static/bootstrap
+ set luci.main.mediaurlbase=/luci-static/bootstrap
+ commit luci
+EOF
+exit 0
+++ /dev/null
-#!/bin/sh
-uci batch <<-EOF
- set luci.themes.Bootstrap=/luci-static/bootstrap
- set luci.main.mediaurlbase=/luci-static/bootstrap
- commit luci
-EOF
-exit 0
--- /dev/null
+uci batch <<-EOF
+ set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic
+ set luci.main.mediaurlbase=/luci-static/freifunk-generic
+ commit luci
+EOF
+++ /dev/null
-uci batch <<-EOF
- set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic
- set luci.main.mediaurlbase=/luci-static/freifunk-generic
- commit luci
-EOF
--- /dev/null
+#!/bin/sh
+uci batch <<-EOF
+ set luci.themes.Material=/luci-static/material
+ set luci.main.mediaurlbase=/luci-static/material
+ commit luci
+EOF
+exit 0
+++ /dev/null
-#!/bin/sh
-uci batch <<-EOF
- set luci.themes.Material=/luci-static/material
- set luci.main.mediaurlbase=/luci-static/material
- commit luci
-EOF
-exit 0
--- /dev/null
+#!/bin/sh
+uci batch <<-EOF
+ set luci.themes.OpenWrt=/luci-static/openwrt.org
+ set luci.main.mediaurlbase=/luci-static/openwrt.org
+ commit luci
+EOF
+++ /dev/null
-#!/bin/sh
-uci batch <<-EOF
- set luci.themes.OpenWrt=/luci-static/openwrt.org
- set luci.main.mediaurlbase=/luci-static/openwrt.org
- commit luci
-EOF