The glob pattern '$drvdir/*/' appended a trailing '/' to each entry, which caused the shell to dereference symlinks before the '[ -L ]' test could run. Since the only symlinks in a USB driver directory ARE the bound device entries (e.g. 4-1:1.0), '[ -L path/ ]' always returned false and the unbind+rebind never fired for any driver. Drop the trailing '/', iterate over all entries, and filter with '[ -L ]' on the raw name. The module/uevent/new_id name-skips still work correctly. |
||
|---|---|---|
| .. | ||
| Android.bp | ||
| android.hardware.wifi.hostapd-service.rc | ||
| android.hardware.wifi.supplicant-service.rc | ||
| apex_file_contexts_hostapd | ||
| apex_file_contexts_supplicant | ||
| apex_manifest_hostapd.json | ||
| apex_manifest_supplicant.json | ||
| init.tart.wifi.rc | ||
| wireless_reprobe.sh | ||
| wpa_supplicant_overlay.conf | ||