applications: revise uci-defaults scripts
[project/luci.git] / applications / luci-p910nd / root / etc / uci-defaults / luci-p910nd
old mode 100644 (file)
new mode 100755 (executable)
index b37952e..80f6d62
@@ -1,7 +1,11 @@
 #!/bin/sh
 
-uci batch <<-EOF
+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