From 21ae874efbacca4e1bc012075ce95414ce76fb47 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Thu, 17 Aug 2017 18:01:17 -0500 Subject: [PATCH] Added driver finder method (thanks to Guilles@stackoverflow). --- lib/InterfaceUtils.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index 73743a1..0ef16a4 100644 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -17,3 +17,11 @@ function interface_list_wireless() { fi done } + +function interface_driver() { + InterfaceDriver=$(basename $(readlink /sys/class/net/$1/device/driver)) +} + +function interface_chipset() { + echo +}