summaryrefslogtreecommitdiffstats
path: root/hosts/profitbricks-build9-amd64
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/profitbricks-build9-amd64')
-rwxr-xr-xhosts/profitbricks-build9-amd64/etc/rc.local2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/profitbricks-build9-amd64/etc/rc.local b/hosts/profitbricks-build9-amd64/etc/rc.local
index 8fed77ba..c5caa74c 100755
--- a/hosts/profitbricks-build9-amd64/etc/rc.local
+++ b/hosts/profitbricks-build9-amd64/etc/rc.local
@@ -45,7 +45,7 @@ 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
+ if [ -z "$(ip link show eth0 | grep 'eth0:' | grep 'mtu 1500 ' || true)" ] ; then
ip link set dev eth0 mtu 1500
fi
fi