diff options
author | Philip Hands <phil@hands.com> | 2016-08-03 23:43:40 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-08-03 23:45:20 +0200 |
commit | 3e81ef78b5d0bb39e159cf60115a4ef32e5a6b48 (patch) | |
tree | 0d07b972f3c94f703d30f3865942f993265024a4 /bin | |
parent | 1409621767a889347694c5f8eb29f00676e2990d (diff) | |
download | jenkins.debian.net-3e81ef78b5d0bb39e159cf60115a4ef32e5a6b48.tar.xz |
use 'ip link' rather than ifconfig
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_maintenance.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 349a85b1..4e315fad 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -45,8 +45,8 @@ fi echo "$(date -u) - testing whether the proxy works..." curl http://www.debian.org > /dev/null echo "$(date -u) - testing whether the network interfaces MTU is 1500..." -if [ "$(LANG=C /sbin/ifconfig | grep -i -v loopback | grep -i mtu | cut -d ":" -f2|cut -d " " -f1)" != "1500" ] ; then - /sbin/ifconfig +if [ "$(ip link | sed -n '/LOOPBACK/!s/.* mtu \([0-9]*\) .*/\1/p')" != "1500" ] ; then + ip link echo "$(date -u) - network interfaces MTU != 1500 - this is wrong." exit 1 fi |