| Server IP : 65.1.209.187 / Your IP : 216.73.216.144 Web Server : nginx/1.24.0 System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64 User : ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/initramfs-tools/dhcpcd-hooks/ |
Upload File : |
#!/bin/sh
set -e
# Configure the MTU for the interface
# See https://github.com/NetworkConfiguration/dhcpcd/issues/67 and https://launchpad.net/bugs/2056194
set_mtu() {
local mtu="$1" interface="$2"
if [ "$mtu" -lt 576 ]; then
echo "MTU $mtu is smaller than 576 which is the minimum for dhcpcd. Ignoring MTU." >&2
return
fi
echo "${mtu}" > "/sys/class/net/${interface}/mtu"
echo "MTU of ${interface} set to ${mtu}"
}
if ${if_up?} && [ -n "${new_interface_mtu-}" ]; then
set_mtu "${new_interface_mtu}" "${interface?}"
fi