first run script pro mrdcom wi
  1. #!/bin/sh
  2.  
  3. ### driver download: http://www.broadcom.com/support/802.11/linux_sta.php
  4. ### stazeny driver rozbalit do /usr/wifi_bcom/
  5.  
  6. KDO=$(whoami)
  7. if [ "$KDO" = "root" ]
  8. then
  9. cd /usr/wifi_bcom/
  10. make clean
  11. make
  12. lsmod  | grep "b43\|ssb\|wl"
  13. rmmod b43
  14. rmmod sbb
  15. rmmod wl
  16. echo "jednou zadat ano ... (ano/ne)"
  17.  
  18. read ANS
  19. if [ "$ANS" = "ano" ]
  20. then
  21. echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
  22. echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf
  23. else
  24. echo "blacklist nebyl p?idn"
  25. fi
  26.  
  27. cp /usr/wifi_bcom/wl.ko /lib/modules/$(uname -r)/kernel/net/wireless/wl.ko
  28. cp /usr/wifi_bcom/wl.ko /lib64/modules/$(uname -r)/kernel/net/wireless/wl.ko
  29. depmod
  30. depmod -a
  31. modprobe wl
  32. modprobe lib80211
  33. insmod wl.ko
  34.  
  35. else
  36. echo "nutno zadat prikaz su a pak az spustit tenhle script"
  37. fi
Parsed in 0.007 seconds