From e4dc57a8103985c29d7cfb3f3dc298e193552a48 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 9 Dec 2022 14:57:47 -0500 Subject: [PATCH] Fix syntax of grep --- .../usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh b/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh index 98c8eaf0..31233c82 100644 --- a/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh +++ b/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh @@ -110,7 +110,7 @@ if [ ! -z "$confluentsrv" ]; then ifname=$(ip -br link|grep LOWER_UP|grep -v UNKNOWN|head -n 1|awk '{print $1}') echo -n "Attempting to use dhcp to bring up $ifname..." dhclient $ifname - while ! ip -br addr show dev $ifname | grep \\ . > /dev/null; do + while ! ip -br addr show dev $ifname | grep \\. > /dev/null; do echo -n "Still waiting for IPv4 address on: " ip -br link show dev $ifname sleep 1 @@ -209,7 +209,7 @@ if [ "$autoconfigmethod" = "dhcp" ]; then if [ "$DIDDHCP" = "0" ]; then echo -n "Attempting to use dhcp to bring up $ifname..." dhclient $ifname - while ! ip -br addr show dev $ifname | grep \\ . > /dev/null; do + while ! ip -br addr show dev $ifname | grep \\. > /dev/null; do echo -n "Still waiting for IPv4 address on: " ip -br link show dev $ifname sleep 1