* luci/contrib/olsr: add postinstall hooks to register ucitrack action for olsrd config

This commit is contained in:
Jo-Philipp Wich 2008-09-13 18:36:46 +00:00
parent fb9fc25c3f
commit f424439b65
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-olsr ) && rm -f /etc/uci-defaults/luci-olsr
}

View file

@ -0,0 +1,7 @@
#!/bin/sh
uci batch <<-EOF
add ucitrack olsrd
set ucitrack.@olsrd[-1].init=olsrd
commit ucitrack
EOF