summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-13 18:36:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-13 18:36:46 +0000
commitf424439b65f9b416de20486da56b387d52cfc81a (patch)
treef27437160914f5f285ac06532a449682ad5e4f5f /applications/luci-olsr
parentfb9fc25c3fa24b43b757c38fe6bcab8a9412ec53 (diff)
* luci/contrib/olsr: add postinstall hooks to register ucitrack action for olsrd config
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