source: trunk/debian/package/debwrt-net/usr/sbin/pciunbind @ 292

Last change on this file since 292 was 292, checked in by amain, 8 years ago

debwrt-net package added: this package will contain all DebWrt networking configuration

  • Property svn:executable set to *
File size: 366 bytes
Line 
1#!/bin/bash
2
3sysfs=/sys/bus/pci/drivers/b43-pci-bridge
4
5if [ -d "$sysfs" ]; then
6    for lnk in $sysfs/*; do
7        [ -h "$lnk" ] || continue
8        case "${lnk##*/}" in
9            *:*:*.*)
10                echo "Unbinding WL PCI device ${lnk##*/} from B43 SSB bridge"
11                echo -n "${lnk##*/}" > "$sysfs/unbind"
12            ;;
13        esac
14    done
15fi
Note: See TracBrowser for help on using the repository browser.