edited script somewhat

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-14 08:37:50 +01:00
parent d4911108a7
commit dbe9a69fd6
4 changed files with 14 additions and 5 deletions

View File

@ -5,7 +5,7 @@ USB_IFACE=''
USB_IP=${2:-10.0.0.1}
for i in $(ifconfig -lu); do
if ifconfig $i | grep -q "${USB_IP}" ; then USB_IFACE=$i; fi;
if ifconfig "$i" | grep -q "${USB_IP}" ; then USB_IFACE=$i; fi;
done
if [ -z "$USB_IFACE" ]