mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-16 10:39:23 +00:00
Fix syntax of grep
This commit is contained in:
parent
0d5f48b116
commit
e4dc57a810
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user