wlunbind 522 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2010-2011 OpenWrt.org
  3. START=09
  4. unbind_driver() {
  5. local driver="$1"
  6. local sysfs="/sys/bus/pci/drivers/$driver"
  7. if [ -d "$sysfs" ]; then
  8. local lnk
  9. for lnk in $sysfs/*; do
  10. [ -h "$lnk" ] || continue
  11. case "${lnk##*/}" in
  12. *:*:*.*)
  13. logger "Unbinding WL PCI device ${lnk##*/} from $driver"
  14. echo -n "${lnk##*/}" > "$sysfs/unbind"
  15. ;;
  16. esac
  17. done
  18. fi
  19. }
  20. boot() {
  21. unbind_driver b43-pci-bridge
  22. unbind_driver bcma-pci-bridge
  23. }
  24. start() { :; }
  25. stop() { :; }