From 08cc4337e234ec3c07753357e5614a3b56873f29 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:50:41 +0200 Subject: Adding debian version 1:6.1-1. Signed-off-by: Daniel Baumann --- debian/ethtool.if-pre-up | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 debian/ethtool.if-pre-up (limited to 'debian/ethtool.if-pre-up') diff --git a/debian/ethtool.if-pre-up b/debian/ethtool.if-pre-up new file mode 100644 index 0000000..398adae --- /dev/null +++ b/debian/ethtool.if-pre-up @@ -0,0 +1,14 @@ +#!/bin/sh + +ETHTOOL=/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 -- cgit v1.2.3