From aaca43844522aa58b3e0eea855c488cc7b47336e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 7 Sep 2021 16:01:18 +0200 Subject: [dhcpc-busybox] Use gawk --- core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx') diff --git a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx index 3e30da55..b661633c 100755 --- a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx +++ b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx @@ -39,7 +39,7 @@ rebuild_resolv_conf () { # group everything else together into one line. # Skip domain entirely if any search lines are found. cat "/run/network/$primary.resolv" /run/network/!("$primary").resolv \ - | awk '{ + | gawk '{ if ( $1 ~ /^[a-z]+$/ ) { for (i = 2; i <= NF; ++i) { if (done[$1][$i]) -- cgit v1.2.3-55-g7522