modem_scan: fix pcie scan
This commit is contained in:
parent
050d5652ee
commit
1a695a1854
@ -126,7 +126,7 @@ scan_pcie_slot_interfaces()
|
|||||||
dun_devices=""
|
dun_devices=""
|
||||||
[ ! -d "$slot_path" ] && return
|
[ ! -d "$slot_path" ] && return
|
||||||
local short_slot_name=`echo ${slot:2:-2} |tr ":" "."`
|
local short_slot_name=`echo ${slot:2:-2} |tr ":" "."`
|
||||||
local slot_interfaces=$(ls $slot_path | grep -E "_${short_slot_name}_")
|
local slot_interfaces=$(ls $slot_path | grep -E "_*${short_slot_name}_")
|
||||||
for interface in $slot_interfaces; do
|
for interface in $slot_interfaces; do
|
||||||
unset device
|
unset device
|
||||||
unset dun_device
|
unset dun_device
|
||||||
|
Loading…
x
Reference in New Issue
Block a user