summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-olsr')
-rwxr-xr-xapplications/luci-olsr/ipkg/postinst4
-rw-r--r--applications/luci-olsr/root/etc/uci-defaults/luci-olsr7
2 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-olsr/ipkg/postinst b/applications/luci-olsr/ipkg/postinst
new file mode 100755
index 0000000000..d2a77744a6
--- /dev/null
+++ b/applications/luci-olsr/ipkg/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-olsr ) && rm -f /etc/uci-defaults/luci-olsr
+}
diff --git a/applications/luci-olsr/root/etc/uci-defaults/luci-olsr b/applications/luci-olsr/root/etc/uci-defaults/luci-olsr
new file mode 100644
index 0000000000..2c38098a53
--- /dev/null
+++ b/applications/luci-olsr/root/etc/uci-defaults/luci-olsr
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+uci batch <<-EOF
+ add ucitrack olsrd
+ set ucitrack.@olsrd[-1].init=olsrd
+ commit ucitrack
+EOF