summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-03-30 16:27:23 +0200
committerHolger Levsen <holger@layer-acht.org>2017-03-30 16:27:23 +0200
commitef3e622dc86cf8c23cb643a3c1850ca8edaec27a (patch)
treeb168f39bcdef68b4984dd3e76cd620b4d2c7b319 /hosts
parent34c1585c61d79ebe1a317c4222b8e5cb6fbf9b3c (diff)
downloadjenkins.debian.net-ef3e622dc86cf8c23cb643a3c1850ca8edaec27a.tar.xz
reproducible Debian: set eth's MTU to 1500 on boot, if it's not set to 1500
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/bbx15-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/bpi0-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/cb3a-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/cbxi4a-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/cbxi4b-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/cbxi4pro0-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled10-arm64/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled11-arm64/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled12-arm64/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled13-arm64/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled14-arm64/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled15-arm64/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled16-arm64/etc/rc.local14
-rwxr-xr-xhosts/codethink-sled9-arm64/etc/rc.local14
-rwxr-xr-xhosts/ff2a-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/ff2b-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/ff4a-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/hb0-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/jenkins-test-vm/etc/rc.local14
-rwxr-xr-xhosts/jenkins/etc/rc.local14
-rwxr-xr-xhosts/jtk1a-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/odu3a-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/odxu4-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/odxu4b-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/odxu4c-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/opi2a-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/opi2b-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/opi2c-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/p64b-armhf-rb.debian.net/etc/rc.local14
-rwxr-xr-xhosts/p64c-armhf-rb.debian.net/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build1-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build10-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build11-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build12-i386/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build15-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build16-i386/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build2-i386/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build3-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build4-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build5-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build6-i386/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build7-amd64/etc/rc.local14
-rwxr-xr-xhosts/profitbricks-build9-amd64/etc/rc.local14
-rwxr-xr-xhosts/rpi2b-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/rpi2c-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/wbd0-armhf-rb/etc/rc.local14
-rwxr-xr-xhosts/wbq0-armhf-rb/etc/rc.local14
47 files changed, 658 insertions, 0 deletions
diff --git a/hosts/bbx15-armhf-rb/etc/rc.local b/hosts/bbx15-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/bbx15-armhf-rb/etc/rc.local
+++ b/hosts/bbx15-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/bpi0-armhf-rb/etc/rc.local b/hosts/bpi0-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/bpi0-armhf-rb/etc/rc.local
+++ b/hosts/bpi0-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/cb3a-armhf-rb/etc/rc.local b/hosts/cb3a-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/cb3a-armhf-rb/etc/rc.local
+++ b/hosts/cb3a-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/cbxi4a-armhf-rb/etc/rc.local b/hosts/cbxi4a-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/cbxi4a-armhf-rb/etc/rc.local
+++ b/hosts/cbxi4a-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/cbxi4b-armhf-rb/etc/rc.local b/hosts/cbxi4b-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/cbxi4b-armhf-rb/etc/rc.local
+++ b/hosts/cbxi4b-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/cbxi4pro0-armhf-rb/etc/rc.local b/hosts/cbxi4pro0-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/cbxi4pro0-armhf-rb/etc/rc.local
+++ b/hosts/cbxi4pro0-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled10-arm64/etc/rc.local b/hosts/codethink-sled10-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled10-arm64/etc/rc.local
+++ b/hosts/codethink-sled10-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled11-arm64/etc/rc.local b/hosts/codethink-sled11-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled11-arm64/etc/rc.local
+++ b/hosts/codethink-sled11-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled12-arm64/etc/rc.local b/hosts/codethink-sled12-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled12-arm64/etc/rc.local
+++ b/hosts/codethink-sled12-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled13-arm64/etc/rc.local b/hosts/codethink-sled13-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled13-arm64/etc/rc.local
+++ b/hosts/codethink-sled13-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled14-arm64/etc/rc.local b/hosts/codethink-sled14-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled14-arm64/etc/rc.local
+++ b/hosts/codethink-sled14-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled15-arm64/etc/rc.local b/hosts/codethink-sled15-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled15-arm64/etc/rc.local
+++ b/hosts/codethink-sled15-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled16-arm64/etc/rc.local b/hosts/codethink-sled16-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled16-arm64/etc/rc.local
+++ b/hosts/codethink-sled16-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/codethink-sled9-arm64/etc/rc.local b/hosts/codethink-sled9-arm64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/codethink-sled9-arm64/etc/rc.local
+++ b/hosts/codethink-sled9-arm64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/ff2a-armhf-rb/etc/rc.local b/hosts/ff2a-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/ff2a-armhf-rb/etc/rc.local
+++ b/hosts/ff2a-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/ff2b-armhf-rb/etc/rc.local b/hosts/ff2b-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/ff2b-armhf-rb/etc/rc.local
+++ b/hosts/ff2b-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/ff4a-armhf-rb/etc/rc.local b/hosts/ff4a-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/ff4a-armhf-rb/etc/rc.local
+++ b/hosts/ff4a-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/hb0-armhf-rb/etc/rc.local b/hosts/hb0-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/hb0-armhf-rb/etc/rc.local
+++ b/hosts/hb0-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/jenkins-test-vm/etc/rc.local b/hosts/jenkins-test-vm/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/jenkins-test-vm/etc/rc.local
+++ b/hosts/jenkins-test-vm/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/jenkins/etc/rc.local b/hosts/jenkins/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/jenkins/etc/rc.local
+++ b/hosts/jenkins/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/jtk1a-armhf-rb/etc/rc.local b/hosts/jtk1a-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/jtk1a-armhf-rb/etc/rc.local
+++ b/hosts/jtk1a-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/odu3a-armhf-rb/etc/rc.local b/hosts/odu3a-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/odu3a-armhf-rb/etc/rc.local
+++ b/hosts/odu3a-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/odxu4-armhf-rb/etc/rc.local b/hosts/odxu4-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/odxu4-armhf-rb/etc/rc.local
+++ b/hosts/odxu4-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/odxu4b-armhf-rb/etc/rc.local b/hosts/odxu4b-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/odxu4b-armhf-rb/etc/rc.local
+++ b/hosts/odxu4b-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/odxu4c-armhf-rb/etc/rc.local b/hosts/odxu4c-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/odxu4c-armhf-rb/etc/rc.local
+++ b/hosts/odxu4c-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/opi2a-armhf-rb/etc/rc.local b/hosts/opi2a-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/opi2a-armhf-rb/etc/rc.local
+++ b/hosts/opi2a-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/opi2b-armhf-rb/etc/rc.local b/hosts/opi2b-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/opi2b-armhf-rb/etc/rc.local
+++ b/hosts/opi2b-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/opi2c-armhf-rb/etc/rc.local b/hosts/opi2c-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/opi2c-armhf-rb/etc/rc.local
+++ b/hosts/opi2c-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/p64b-armhf-rb.debian.net/etc/rc.local b/hosts/p64b-armhf-rb.debian.net/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/p64b-armhf-rb.debian.net/etc/rc.local
+++ b/hosts/p64b-armhf-rb.debian.net/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/p64c-armhf-rb.debian.net/etc/rc.local b/hosts/p64c-armhf-rb.debian.net/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/p64c-armhf-rb.debian.net/etc/rc.local
+++ b/hosts/p64c-armhf-rb.debian.net/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build1-amd64/etc/rc.local b/hosts/profitbricks-build1-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build1-amd64/etc/rc.local
+++ b/hosts/profitbricks-build1-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build10-amd64/etc/rc.local b/hosts/profitbricks-build10-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build10-amd64/etc/rc.local
+++ b/hosts/profitbricks-build10-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build11-amd64/etc/rc.local b/hosts/profitbricks-build11-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build11-amd64/etc/rc.local
+++ b/hosts/profitbricks-build11-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build12-i386/etc/rc.local b/hosts/profitbricks-build12-i386/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build12-i386/etc/rc.local
+++ b/hosts/profitbricks-build12-i386/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build15-amd64/etc/rc.local b/hosts/profitbricks-build15-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build15-amd64/etc/rc.local
+++ b/hosts/profitbricks-build15-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build16-i386/etc/rc.local b/hosts/profitbricks-build16-i386/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build16-i386/etc/rc.local
+++ b/hosts/profitbricks-build16-i386/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build2-i386/etc/rc.local b/hosts/profitbricks-build2-i386/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build2-i386/etc/rc.local
+++ b/hosts/profitbricks-build2-i386/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build3-amd64/etc/rc.local b/hosts/profitbricks-build3-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build3-amd64/etc/rc.local
+++ b/hosts/profitbricks-build3-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build4-amd64/etc/rc.local b/hosts/profitbricks-build4-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build4-amd64/etc/rc.local
+++ b/hosts/profitbricks-build4-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build5-amd64/etc/rc.local b/hosts/profitbricks-build5-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build5-amd64/etc/rc.local
+++ b/hosts/profitbricks-build5-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build6-i386/etc/rc.local b/hosts/profitbricks-build6-i386/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build6-i386/etc/rc.local
+++ b/hosts/profitbricks-build6-i386/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build7-amd64/etc/rc.local b/hosts/profitbricks-build7-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build7-amd64/etc/rc.local
+++ b/hosts/profitbricks-build7-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/profitbricks-build9-amd64/etc/rc.local b/hosts/profitbricks-build9-amd64/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/profitbricks-build9-amd64/etc/rc.local
+++ b/hosts/profitbricks-build9-amd64/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/rpi2b-armhf-rb/etc/rc.local b/hosts/rpi2b-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/rpi2b-armhf-rb/etc/rc.local
+++ b/hosts/rpi2b-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/rpi2c-armhf-rb/etc/rc.local b/hosts/rpi2c-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/rpi2c-armhf-rb/etc/rc.local
+++ b/hosts/rpi2c-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/wbd0-armhf-rb/etc/rc.local b/hosts/wbd0-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/wbd0-armhf-rb/etc/rc.local
+++ b/hosts/wbd0-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in
diff --git a/hosts/wbq0-armhf-rb/etc/rc.local b/hosts/wbq0-armhf-rb/etc/rc.local
index 7a3ac282..9248a7a7 100755
--- a/hosts/wbq0-armhf-rb/etc/rc.local
+++ b/hosts/wbq0-armhf-rb/etc/rc.local
@@ -42,6 +42,16 @@ fixup_shm() {
chmod 1777 /dev/shm
}
+fixup_mtu() {
+ # only act on systems which have eth0
+ if ip link show eth0 >/dev/null 2>&1 ; then
+ # if MTU != 1500 set it to 1500
+ if [ "$(ip link show eth0 | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' )" != "1500" ] ; then
+ ip link set dev eth0 mtu 1500
+ fi
+ fi
+}
+
#
# init, notify about reboots
#
@@ -79,6 +89,10 @@ esac
fixup_shm
#
+# fixup eth0's MTU if needed
+fixup_mtu
+
+#
# put schroots on tmpfs for non debian hosts
#
case $(hostname) in