From eefaf9948bab22a9583ea24a37972338c39c8d35 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sat, 11 Sep 2021 22:44:11 -1000 Subject: [PATCH] base-files: reduce `sed` calls The `sed`-script shouldn't be called multiple times, especially not with the same files. This commit merges all files together in a single `sed`-script call. Signed-off-by: Paul Spooren --- package/base-files/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index bae49d3e69..da377b8581 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -139,13 +139,11 @@ define Package/base-files/install $(VERSION_SED_SCRIPT) \ $(1)/etc/banner \ + $(1)/etc/device_info \ + $(1)/etc/openwrt_release \ $(1)/etc/openwrt_version \ $(1)/usr/lib/os-release - $(VERSION_SED_SCRIPT) \ - $(1)/etc/openwrt_release \ - $(1)/etc/device_info \ - $(1)/usr/lib/os-release $(SED) "s#%PATH%#$(TARGET_INIT_PATH)#g" \ $(1)/sbin/hotplug-call \