add mtu support for manual interfaces
tested with classic linux interfaces/bridge and openvswitch interfaces Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
43d85563a7
commit
c7bee4c675
3
Makefile
3
Makefile
@ -79,7 +79,7 @@ aplupload:
|
||||
scp aplinfo/aplinfo.dat aplinfo.dat.gz aplinfo/aplinfo.dat.asc download1.proxmox.com:/home/ftp/appliances/
|
||||
|
||||
.PHONY: install
|
||||
install: country.dat vznet.conf vzdump.conf vzdump-hook-script.pl pve-apt.conf pve-repo-ca-certificates.crt
|
||||
install: country.dat vznet.conf vzdump.conf vzdump-hook-script.pl pve-apt.conf pve-repo-ca-certificates.crt mtu
|
||||
install -d -m 0700 -o www-data -g www-data ${DESTDIR}/var/log/pveproxy
|
||||
install -D -m 0644 debian/pve.logrotate ${DESTDIR}/etc/logrotate.d/pve
|
||||
install -d ${DESTDIR}/usr/share/${PACKAGE}
|
||||
@ -95,6 +95,7 @@ install: country.dat vznet.conf vzdump.conf vzdump-hook-script.pl pve-apt.conf p
|
||||
install -D -m 0644 pve-repo-ca-certificates.crt ${DESTDIR}/etc/apt/pve-repo-ca-certificates.crt
|
||||
install -D -m 0644 vzdump.conf ${DESTDIR}/etc/vzdump.conf
|
||||
install -D -m 0755 vznet.conf ${DESTDIR}/etc/vz/vznet.conf
|
||||
install -D -m 0755 mtu ${DESTDIR}/etc/network/if-up.d/mtu
|
||||
install -m 0644 vzdump-hook-script.pl ${DOCDIR}/examples/vzdump-hook-script.pl
|
||||
install -m 0644 copyright ${DOCDIR}
|
||||
install -m 0644 debian/changelog.Debian ${DOCDIR}
|
||||
|
1
debian/conffiles
vendored
1
debian/conffiles
vendored
@ -12,3 +12,4 @@
|
||||
/etc/apt/apt.conf.d/75pveconf
|
||||
/etc/apt/pve-repo-ca-certificates.crt
|
||||
/etc/apt/sources.list.d/pve-enterprise.list
|
||||
/etc/network/if-up.d/mtu
|
||||
|
16
mtu
Executable file
16
mtu
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user