diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-13 18:36:46 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-13 18:36:46 +0000 |
commit | f424439b65f9b416de20486da56b387d52cfc81a (patch) | |
tree | f27437160914f5f285ac06532a449682ad5e4f5f /applications/luci-olsr | |
parent | fb9fc25c3fa24b43b757c38fe6bcab8a9412ec53 (diff) |
* luci/contrib/olsr: add postinstall hooks to register ucitrack action for olsrd config
Diffstat (limited to 'applications/luci-olsr')
-rwxr-xr-x | applications/luci-olsr/ipkg/postinst | 4 | ||||
-rw-r--r-- | applications/luci-olsr/root/etc/uci-defaults/luci-olsr | 7 |
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 |