aboutsummaryrefslogtreecommitdiff
path: root/updater-ng-auto/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'updater-ng-auto/Makefile')
-rw-r--r--updater-ng-auto/Makefile14
1 files changed, 7 insertions, 7 deletions
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) +[^(]/{