diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-05-25 11:51:16 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-05-25 11:51:16 +0200 |
commit | 763e43d05c8cf89bce90ae0aaf6d0266badc1c73 (patch) | |
tree | 66a56ca78f6f2c894380355430bff5cc5f093800 /netset | |
parent | 82b74a39a15b94d292107c3efc1489f060c9443d (diff) | |
download | bin-763e43d05c8cf89bce90ae0aaf6d0266badc1c73.zip bin-763e43d05c8cf89bce90ae0aaf6d0266badc1c73.tar.gz |
calls to ip use -p flag
Diffstat (limited to 'netset')
-rwxr-xr-x | netset | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ do N=$((N + 1)) [ $N -eq 10 ] && echo " failure" && exit 1 echo -n "." && sleep 1 - ADDR=$(ip -c addr show dev $dev | sed -n '/inet /p') + ADDR=$(ip -4 -c addr show dev $dev | sed -n '/inet/p') done echo echo $ADDR |