From ae3df10c876759010ceb65558932a31c1d72b831 Mon Sep 17 00:00:00 2001 From: Viorel Munteanu Date: Sun, 17 Apr 2022 12:10:42 +0300 Subject: sys-apps/busybox: Fix bashism in udhcpc script Closes: https://bugs.gentoo.org/801535 Signed-off-by: Viorel Munteanu Signed-off-by: Sam James --- sys-apps/busybox/busybox-1.34.1-r1.ebuild | 1 + 1 file changed, 1 insertion(+) (limited to 'sys-apps/busybox') diff --git a/sys-apps/busybox/busybox-1.34.1-r1.ebuild b/sys-apps/busybox/busybox-1.34.1-r1.ebuild index 1d060aa4237c..258351783943 100644 --- a/sys-apps/busybox/busybox-1.34.1-r1.ebuild +++ b/sys-apps/busybox/busybox-1.34.1-r1.ebuild @@ -277,6 +277,7 @@ src_install() { newinitd "${FILESDIR}"/watchdog.initd busybox-watchdog fi if busybox_config_enabled UDHCPC; then + sed -i 's:$((metric++)):$metric; metric=$((metric + 1)):' examples/udhcp/simple.script || die #801535 local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) exeinto "${path%/*}" newexe examples/udhcp/simple.script "${path##*/}" -- cgit v1.2.3-65-gdbad