diff options
author | Jonathan Bauer | 2020-10-05 17:11:09 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-10-05 17:11:09 +0200 |
commit | e852ce889d195e2a8e4b5b3e88aef785781c7a6d (patch) | |
tree | e55cdd4f06295f4c16726cf9fa772c55aeef80ec | |
parent | [slx-network] no 'exit' in hooks... (diff) | |
download | systemd-init-e852ce889d195e2a8e4b5b3e88aef785781c7a6d.tar.gz systemd-init-e852ce889d195e2a8e4b5b3e88aef785781c7a6d.tar.xz systemd-init-e852ce889d195e2a8e4b5b3e88aef785781c7a6d.zip |
[slx-network] support for SLX_JUMBO_FRAMES
-rw-r--r-- | modules.d/slx-network/hooks/configure-jumbo-frames.sh | 8 | ||||
-rwxr-xr-x | modules.d/slx-network/module-setup.sh | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/modules.d/slx-network/hooks/configure-jumbo-frames.sh b/modules.d/slx-network/hooks/configure-jumbo-frames.sh new file mode 100644 index 00000000..138725f9 --- /dev/null +++ b/modules.d/slx-network/hooks/configure-jumbo-frames.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +. /etc/openslx + +if [ "x$SLX_JUMBO_FRAMES" = "xyes" ]; then + ip link set dev "$SLX_PXE_NETIF" mtu 9000 +fi +true diff --git a/modules.d/slx-network/module-setup.sh b/modules.d/slx-network/module-setup.sh index df95bfee..cea977d5 100755 --- a/modules.d/slx-network/module-setup.sh +++ b/modules.d/slx-network/module-setup.sh @@ -35,6 +35,7 @@ install() { # hooks inst_hook cmdline 10 "${moddir}/hooks/parse-ipxe-network-kcl.sh" + inst_hook pre-pivot 10 "${moddir}/hooks/configure-jumbo-frames.sh" inst_hook pre-pivot 50 "${moddir}/hooks/copy-network-files.sh" inst_hook pre-pivot 60 "${moddir}/hooks/activate-bootif-dhcp.sh" } |