pve-manager/network-hooks/mtu
Thomas Lamprecht 6ebc0106ce cleanup: add network-hooks directory and move respective files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00

17 lines
236 B
Bash
Executable File

#!/bin/sh
case "$IFACE" in
# Ignore any alias (#272891) which uses <interface>:<alabel>
*:*)
exit 0
;;
esac
if [ "$METHOD" != manual ]; then
exit 0
fi
if [ -n "$IF_MTU" ]; then
ip link set $IFACE mtu $IF_MTU
fi