mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fix
This commit is contained in:
parent
652585c9f9
commit
d385fd39b0
17
inxi
17
inxi
|
@ -3,7 +3,7 @@
|
|||
#### Script Name: inxi
|
||||
#### version: 1.7.24
|
||||
#### Date: November 21 2011
|
||||
#### Patch Number: 01
|
||||
#### Patch Number: 02
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
########################################################################
|
||||
|
@ -4475,14 +4475,15 @@ get_network_advanced_data()
|
|||
# now we want the real one, that xiin also displays, without symbolic links.
|
||||
if [[ -e $working_path ]];then
|
||||
working_path=$( readlink -f $working_path 2>/dev/null )
|
||||
# sometimes there is another directory between the path and /net
|
||||
if [[ ! -e $working_path/net ]];then
|
||||
# using find here, probably will need to also use it in usb part since the grep
|
||||
# method seems to not be working now. Slice off the rest, which leaves the basic path
|
||||
working_path=$( find $working_path/*/uevent 2>/dev/null | \
|
||||
sed 's|/uevent.*||' )
|
||||
fi
|
||||
fi
|
||||
# sometimes there is another directory between the path and /net
|
||||
if [[ ! -e $working_path/net ]];then
|
||||
# using find here, probably will need to also use it in usb part since the grep
|
||||
# method seems to not be working now. Slice off the rest, which leaves the basic path
|
||||
working_path=$( find $working_path/*/uevent 2>/dev/null | \
|
||||
sed 's|/net.*||' )
|
||||
fi
|
||||
|
||||
# working_path=$( ls /sys/devices/pci*/*/0000:${a_network_adv_working[4]}/net/*/uevent )
|
||||
else
|
||||
# slice off the usb- part
|
||||
|
|
Loading…
Reference in a new issue