* luci/contrib/olsr: add postinstall hooks to register ucitrack action for olsrd config
This commit is contained in:
parent
fb9fc25c3f
commit
f424439b65
2 changed files with 11 additions and 0 deletions
4
applications/luci-olsr/ipkg/postinst
Executable file
4
applications/luci-olsr/ipkg/postinst
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
( . /etc/uci-defaults/luci-olsr ) && rm -f /etc/uci-defaults/luci-olsr
|
||||
}
|
7
applications/luci-olsr/root/etc/uci-defaults/luci-olsr
Normal file
7
applications/luci-olsr/root/etc/uci-defaults/luci-olsr
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci batch <<-EOF
|
||||
add ucitrack olsrd
|
||||
set ucitrack.@olsrd[-1].init=olsrd
|
||||
commit ucitrack
|
||||
EOF
|
Loading…
Reference in a new issue