mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-30 08:04:10 +00:00
include/rootfs: improve readability of OPKG status fixup block
Improve readability of OPKG status fixup block. Link: https://github.com/openwrt/openwrt/pull/15543 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
b92e62d464
commit
b569d0cc3f
@ -95,12 +95,12 @@ define prepare_rootfs
|
|||||||
[ -n "$(CONFIG_USE_APK)" ] && $(STAGING_DIR_HOST)/bin/tar --delete -f ./lib/apk/db/scripts.tar $$(basename $$script); \
|
[ -n "$(CONFIG_USE_APK)" ] && $(STAGING_DIR_HOST)/bin/tar --delete -f ./lib/apk/db/scripts.tar $$(basename $$script); \
|
||||||
done; \
|
done; \
|
||||||
if [ -z "$(CONFIG_USE_APK)" ]; then \
|
if [ -z "$(CONFIG_USE_APK)" ]; then \
|
||||||
$(if $(IB),,awk -i inplace \
|
$(if $(IB),,awk -i inplace \
|
||||||
'/^Status:/ { \
|
'/^Status:/ { \
|
||||||
if ($$3 == "user") { $$3 = "ok" } \
|
if ($$3 == "user") { $$3 = "ok" } \
|
||||||
else { sub(/,\<user\>|\<user\>,/, "", $$3) } \
|
else { sub(/,\<user\>|\<user\>,/, "", $$3) } \
|
||||||
}1' $(1)/usr/lib/opkg/status) ; \
|
}1' $(1)/usr/lib/opkg/status) ; \
|
||||||
$(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(1)/usr/lib/opkg/status ;) \
|
$(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(1)/usr/lib/opkg/status ;) \
|
||||||
fi; \
|
fi; \
|
||||||
for script in ./etc/init.d/*; do \
|
for script in ./etc/init.d/*; do \
|
||||||
grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \
|
grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user