From 74450124f606cb04bdd44684b6070a15dd0837bd Mon Sep 17 00:00:00 2001 From: Michal Hrusecky Date: Wed, 17 Jan 2018 13:25:43 +0100 Subject: build: Optionally provide file checksums in package metadata This may be useful if you don't entirely trust your flash and want to be able to check for corruptions. Signed-off-by: Michal Hrusecky --- package/base-files/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/base-files/Makefile') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index ea1e4ebf57..0dc8b6d61e 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -195,6 +195,8 @@ define Package/base-files/install mkdir -p $(1)/etc/opkg; \ $(call FeedSourcesAppend,$(1)/etc/opkg/distfeeds.conf); \ $(VERSION_SED_SCRIPT) $(1)/etc/opkg/distfeeds.conf) + $(if $(CONFIG_IPK_FILES_CHECKSUMS), \ + rm -f $(1)/sbin/pkg_check,) endef ifneq ($(DUMP),1) -- cgit v1.2.3