modem_scan: fix pcie scan

This commit is contained in:
fujr 2024-12-11 23:16:17 +08:00
parent 050d5652ee
commit 1a695a1854

View File

@ -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