From 5a619f8aa141485edeac706564568cf67057224a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 31 Mar 2018 14:36:22 +0200 Subject: netset : reject ipv6 for now --- netset | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netset b/netset index f6742d9..2ab1d90 100755 --- a/netset +++ b/netset @@ -21,12 +21,13 @@ do done N=0 dev=$(cat /etc/netctl/$profile | sed -n 's/Interface\=\(.*\)/\1/p') -ADDR=$(ip -c addr show dev $dev | grep inet) +ADDR="" while [ -z "$ADDR" ] do N=$((N + 1)) [ $N -eq 10 ] && echo " failure" && exit 1 echo -n "." && sleep 1 - ADDR=$(ip -c addr show dev $dev | grep inet) + ADDR=$(ip -c addr show dev $dev | sed -n '/inet /p') done +echo echo $ADDR -- cgit v1.1-2-g2b99