From 33083fab3bf2760dbd39cc68711e5e429eae74e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 25 Oct 2017 13:01:03 +0200 Subject: Update updater-ng-auto package --- updater-ng-auto/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'updater-ng-auto/Makefile') diff --git a/updater-ng-auto/Makefile b/updater-ng-auto/Makefile index 945717a..4c1935a 100644 --- a/updater-ng-auto/Makefile +++ b/updater-ng-auto/Makefile @@ -60,14 +60,15 @@ ifneq ($(PKG_BRANCH),) echo "config override 'override'" >> $(1)/etc/config/updater echo " option branch '$(PKG_BRANCH)'" >> $(1)/etc/config/updater endif + $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pkgupdate/init $(1)/etc/init.d/updater + $(INSTALL_DIR) $(1)/etc/cron.d + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pkgupdate/cron $(1)/etc/cron.d/updater + $(INSTALL_DIR) $(1)/etc/ssl $(INSTALL_DATA) $(PKG_BUILD_DIR)/updater.pem $(1)/etc/ssl/updater.pem - - $(INSTALL_DIR) $(1)/etc/uci-defaults - $(INSTALL_BIN) ./files/updater.defaults $(1)/etc/uci-defaults/updater endef define Package/$(PKG_NAME)/conffiles @@ -79,12 +80,11 @@ endef define Package/$(PKG_NAME)/postinst #!/bin/sh [ -n "$$IPKG_INSTROOT" ] || { -/etc/init.d/updater enable || true -# Run the uci-defaults now if we are installed at runtime and not flashed -/etc/uci-defaults/updater && rm /etc/uci-defaults/updater + /etc/init.d/updater enable || true } + # Remove morphered syntax from auto.lua -# This matches all Install and Package commands not follwed by brackets. Whole +# This matches all Install and Package commands not followed by brackets. Whole # line is enclosed with brackets and between strings and tables are added commas. AUTOTMP="$$(mktemp)" sed -E '/^(Install|Package) +[^(]/{ -- cgit v1.2.3