Verified Commit bfde97fe authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

base-files: Enable all base-files inits

Currently on migration, some important one like system could be disabled and
thus people might not have hostname set properly on boot.
parent c1ab685d
......@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/version.mk
PKG_NAME:=base-files
PKG_RELEASE:=157
PKG_RELEASE:=158
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host usign/host
......@@ -177,6 +177,15 @@ define Package/base-files/install
echo -e "if [ -z "\$$$$IPKG_INSTROOT" ]; then for i in `ls $(1)/etc/init.d/ | awk '{ printf "/etc/init.d/%s ", $$$$0 }'`; do "\$$$$i" enable || true; done; fi" >> $(1)/CONTROL/postinst
endef
define Package/base-files/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
grep etc/init.d /usr/lib/opkg/info/base-files.list | while read service; do
/$$service enable
done
}
endef
ifneq ($(DUMP),1)
-include $(PLATFORM_DIR)/base-files.mk
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment