1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2010-2011 OpenWrt.org
8 local sysfs
="/sys/bus/pci/drivers/$driver"
9 if [ -d "$sysfs" ]; then
11 for lnk
in $sysfs/*; do
12 [ -h "$lnk" ] ||
continue
15 logger
"Unbinding WL PCI device ${lnk##*/} from $driver"
16 echo -n "${lnk##*/}" > "$sysfs/unbind"
24 unbind_driver b43-pci-bridge
25 unbind_driver bcma-pci-bridge