From: Jo-Philipp Wich Date: Sat, 13 Sep 2008 18:36:46 +0000 (+0000) Subject: * luci/contrib/olsr: add postinstall hooks to register ucitrack action for olsrd... X-Git-Tag: 0.9.0~1322 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f424439b65f9b416de20486da56b387d52cfc81a;p=oweals%2Fluci.git * luci/contrib/olsr: add postinstall hooks to register ucitrack action for olsrd config --- diff --git a/applications/luci-olsr/ipkg/postinst b/applications/luci-olsr/ipkg/postinst new file mode 100755 index 000000000..d2a77744a --- /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 000000000..2c38098a5 --- /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