Conversion of the 'uci-defaults' script for ucitrack handling to the new
json processing.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
PKG_NAME:=cjdns
PKG_VERSION:=21.1
-PKG_RELEASE:=5
+PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/cjdelisle/cjdns/tar.gz/$(PKG_NAME)-v$(PKG_VERSION)?
$(1)/etc/config \
$(1)/etc/init.d \
$(1)/etc/uci-defaults \
- $(1)/usr/lib/lua/cjdns
+ $(1)/usr/lib/lua/cjdns \
+ $(1)/usr/share/ucitrack
$(INSTALL_BIN) \
./files/cjdrouteconf \
./files/cjdns.defaults \
$(1)/etc/uci-defaults/cjdns
+ $(INSTALL_DATA) \
+ ./files/luci-app-cjdns.json \
+ $(1)/usr/share/ucitrack
+
$(CP) \
./lua/cjdns/* \
$(1)/usr/lib/lua/cjdns
uci get cjdns.cjdns.ipv6 >/dev/null 2>&1
if [ $? -ne 0 ]; then
- # register commit handler
- uci -q batch <<-EOF >/dev/null
- delete ucitrack.@cjdns[-1]
- add ucitrack cjdns
- set ucitrack.@cjdns[-1].init=cjdns
- commit ucitrack
-EOF
-
# generate configuration
touch /etc/config/cjdns
cjdroute --genconf | cjdroute --cleanconf | cjdrouteconf set
--- /dev/null
+{
+ "config": "cjdns",
+ "init": "cjdns"
+}