mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
bug fixes, and upped version number. Yes, fixing one bug caused another, hopefully both are now fixed
This commit is contained in:
parent
8e4e7eac60
commit
96ad63541b
18
inxi
18
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.5.12
|
#### version: 1.5.13
|
||||||
#### Date: June 5 2011
|
#### Date: June 5 2011
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -3960,16 +3960,20 @@ get_network_advanced_data()
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
log_function_data "PRE: working_path: $working_path\nworking_uevent_path: $working_uevent_path"
|
log_function_data "PRE: working_path: $working_path\nworking_uevent_path: $working_uevent_path"
|
||||||
if [[ -n $usb_data && -e $working_uevent_path/net ]];then
|
|
||||||
if_path=$( ls $working_uevent_path/net 2>/dev/null )
|
# this applies in two different cases, one, default, standard, two, for usb, this is actually
|
||||||
if_id=$if_path
|
# the short path, minus the last longer numeric directory name, ie:
|
||||||
working_path=$working_uevent_path/net/$if_path
|
# from debian squeeze 2.6.32-5-686:
|
||||||
# this case, from debian squeeze 2.6.32-5-686:
|
|
||||||
# /sys/devices/pci0000:00/0000:00:0b.1/usb1/1-1/net/wlan0/address
|
# /sys/devices/pci0000:00/0000:00:0b.1/usb1/1-1/net/wlan0/address
|
||||||
elif [[ -e $working_path/net ]];then
|
if [[ -e $working_path/net ]];then
|
||||||
if_path=$( ls $working_path/net 2>/dev/null )
|
if_path=$( ls $working_path/net 2>/dev/null )
|
||||||
if_id=$if_path
|
if_id=$if_path
|
||||||
working_path=$working_path/net/$if_path
|
working_path=$working_path/net/$if_path
|
||||||
|
# this is the normal usb detection if the first one didn't work
|
||||||
|
elif [[ -n $usb_data && -e $working_uevent_path/net ]];then
|
||||||
|
if_path=$( ls $working_uevent_path/net 2>/dev/null )
|
||||||
|
if_id=$if_path
|
||||||
|
working_path=$working_uevent_path/net/$if_path
|
||||||
# 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0
|
# 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0
|
||||||
else
|
else
|
||||||
if_path=$( ls $working_path 2>/dev/null | grep 'net:' )
|
if_path=$( ls $working_path 2>/dev/null | grep 'net:' )
|
||||||
|
|
Loading…
Reference in a new issue