summaryrefslogtreecommitdiff
path: root/kmod/igb
diff options
context:
space:
mode:
authorStefan S <smarzlys@gmail.com>2014-12-22 14:55:58 +0100
committerStefan S <smarzlys@gmail.com>2014-12-22 14:55:58 +0100
commitcc477d15c5e0b92a10fd49d6746c08548b9ce6ac (patch)
treea03ee0685e289a3f7ca6429fd9a3f8fce13446d2 /kmod/igb
parentdff79c48e95f86809ffa8ed2fb05d9eab67efca6 (diff)
downloadOpen-AVB-cc477d15c5e0b92a10fd49d6746c08548b9ce6ac.tar.gz
Support interface as parameter for igb startup script
Diffstat (limited to 'kmod/igb')
-rwxr-xr-x[-rw-r--r--]kmod/igb/startup.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/kmod/igb/startup.sh b/kmod/igb/startup.sh
index ae71e373..2bcd58b8 100644..100755
--- a/kmod/igb/startup.sh
+++ b/kmod/igb/startup.sh
@@ -2,6 +2,13 @@
# Network interface name (e.g. Fedora=p2p1, Ubuntu=eth2, OpenSUSE=ens01)
INTERFACE=p2p1
+
+# Replace default interface if provided by argument
+if [ -n "$1" ]
+ then
+ INTERFACE=$1
+fi
+
export INTERFACE
rmmod igb