summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-mmc-over-gpio/root/etc/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-mmc-over-gpio/root/etc/uci-defaults')
-rwxr-xr-x[-rw-r--r--]applications/luci-mmc-over-gpio/root/etc/uci-defaults/luci-mmc-over-gpio (renamed from applications/luci-mmc-over-gpio/root/etc/uci-defaults/luci-mmc_over_gpio)6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-mmc-over-gpio/root/etc/uci-defaults/luci-mmc_over_gpio b/applications/luci-mmc-over-gpio/root/etc/uci-defaults/luci-mmc-over-gpio
index 3dd22ec62..c6e79e60d 100644..100755
--- a/applications/luci-mmc-over-gpio/root/etc/uci-defaults/luci-mmc_over_gpio
+++ b/applications/luci-mmc-over-gpio/root/etc/uci-defaults/luci-mmc-over-gpio
@@ -1,7 +1,11 @@
#!/bin/sh
-uci batch <<-EOF
+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