summaryrefslogtreecommitdiffstats
path: root/hosts/bpi0-armhf-rb
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-04-28 15:18:00 +0200
committerHolger Levsen <holger@layer-acht.org>2017-04-28 15:18:00 +0200
commit0018114a2da9f22cfa581961a5a3bc7043088bd6 (patch)
treefafa3a111eab4e973ad44d7ce2fc3a72fca36eb6 /hosts/bpi0-armhf-rb
parent6d0eb25d48064e23902cbb87f62a0703ba9f0e4b (diff)
downloadjenkins.debian.net-0018114a2da9f22cfa581961a5a3bc7043088bd6.tar.xz
simplify (and fix) check for incorrect mtu
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts/bpi0-armhf-rb')
-rwxr-xr-xhosts/bpi0-armhf-rb/etc/rc.local2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/bpi0-armhf-rb/etc/rc.local b/hosts/bpi0-armhf-rb/etc/rc.local
index 8fed77ba..c5caa74c 100755
--- a/hosts/bpi0-armhf-rb/etc/rc.local
+++ b/hosts/bpi0-armhf-rb/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