Created
July 18, 2018 20:45
-
-
Save aursu/ebfc5230bf8ed2b53ad024e0abb4f8f6 to your computer and use it in GitHub Desktop.
/etc/NetworkManager/dispatcher.d/30-mtu: set MTU on startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
interface=$1 | |
if [ "$2" = "up" -a -f /etc/sysconfig/network-scripts/ifcfg-$interface ]; then | |
/usr/sbin/ip link set dev $1 mtu 1390 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment