fi
if [ -n "$path" ]; then
path="${path##/sys/devices/}"
- path="${path##platform/}"
+ case "$path" in
+ platform*/pci*) path="${path##platform/}";;
+ esac
dev_id=" option path '$path'"
else
dev_id=" option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)"