summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_maintenance.sh
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-08-03 23:49:42 +0200
committerHolger Levsen <holger@layer-acht.org>2016-08-03 23:52:08 +0200
commitf9076b64f18cee60495cc8cb47cf0c2f9f676c35 (patch)
treea7b087adf7c99e5ad992fd0175e28162e9801eea /bin/reproducible_maintenance.sh
parent746c9d6e15711ba84fe2e326dbd162ef320d8516 (diff)
downloadjenkins.debian.net-f9076b64f18cee60495cc8cb47cf0c2f9f676c35.tar.xz
cope with machines with multiple network interfaces
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-xbin/reproducible_maintenance.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 4e315fad..9efc1f69 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -45,7 +45,7 @@ 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 [ "$(ip link | sed -n '/LOOPBACK/!s/.* mtu \([0-9]*\) .*/\1/p')" != "1500" ] ; then
+if [ "$(ip link | sed -n '/LOOPBACK/!s/.* mtu \([0-9]*\) .*/\1/p' | sort -u)" != "1500" ] ; then
ip link
echo "$(date -u) - network interfaces MTU != 1500 - this is wrong."
exit 1