base-files: reduce `sed` calls
authorPaul Spooren <mail@aparcar.org>
Sun, 12 Sep 2021 08:44:11 +0000 (22:44 -1000)
committerPaul Spooren <mail@aparcar.org>
Fri, 24 Sep 2021 07:39:46 +0000 (21:39 -1000)
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 <mail@aparcar.org>
package/base-files/Makefile

index 58ad08c63a082b0b3812cb2e5a249f1e1932c1c7..f87fd0fe6a1f02d19146fec0561bea4e6329e73b 100644 (file)
@@ -150,13 +150,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 \