summaryrefslogtreecommitdiff
path: root/updater-ng
diff options
context:
space:
mode:
Diffstat (limited to 'updater-ng')
-rw-r--r--updater-ng/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/updater-ng/Makefile b/updater-ng/Makefile
index 00ee314..90b8269 100644
--- a/updater-ng/Makefile
+++ b/updater-ng/Makefile
@@ -49,9 +49,6 @@ define Package/$(PKG_NAME)/install
# it is here only for reference and to make sure that it exists.
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/updater.config $(1)/etc/config/updater
-
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/supervisor/init $(1)/etc/init.d/updater-journal-recover
endef
define Package/$(PKG_NAME)/conffiles
@@ -59,12 +56,6 @@ define Package/$(PKG_NAME)/conffiles
/etc/config/updater
endef
-define Package/$(PKG_NAME)/postinst
-if [ -z "$$IPKG_INSTROOT" ]; then
- /etc/init.d/updater enable || true
-fi
-endef
-
define Package/$(PKG_NAME)-supervisor
TITLE:=Next generation updater supervisor and its library
@@ -76,6 +67,8 @@ define Py3Package/$(PKG_NAME)-supervisor/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/supervisor/updater-supervisor $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/supervisor/init $(1)/etc/init.d/updater-journal-recover
$(INSTALL_DIR) $(1)/etc/cron.d
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/supervisor/cron $(1)/etc/cron.d/updater