PHP 8.5.2
Preview: ethtool Size: 348 B
//etc/network/if-pre-up.d/ethtool

#!/bin/sh

ETHTOOL=/usr/sbin/ethtool

test -x $ETHTOOL || exit 0

[ "$IFACE" != "lo" ] || exit 0

# Gather together the mixed bag of settings applied with -s/--change
SETTINGS="\
${IF_ETHERNET_PORT:+ port $IF_ETHERNET_PORT}\
${IF_DRIVER_MESSAGE_LEVEL:+ msglvl $IF_DRIVER_MESSAGE_LEVEL}\
"
[ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
348 B lrwxr-xr-x 2024-01-31 07:37:15
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).