remove-wl
von retabell- SNIPPET_DESC:
- switch from wl to b43/b44
- SNIPPET_CREATION_TIME:
- 28.01.2022 05:37:30
- SNIPPET_PRUNE_TIME:
- Unendlich
- SNIPPET_TEXT:
-
- #!/bin/sh
- # install broadcom firmware and remove non-free broadcom driver
- if [ "$(id -u)" != 0 ]; then
- echo "Error: You must be root to run this script!"
- exit 1
- fi
- # Check if online
- if ! ping -c1 debian.org >/dev/null 2>&1; then
- echo "No internet connection found"
- exit 2
- fi
- echo
- echo "This will remove non-free broadcom wl driver"
- echo "and additionally install non redistributable"
- echo "broadcom firmware for b43/b44 driver."
- echo "wl backup is stored in /root"
- echo
- echo -n "Do you want to continue? (y/n)? "
- read answer
- if [ "$answer" != "${answer#[YyJj]}" ] ;then
- apt update
- #install non-redistributable broadcom-firmware
- apt-get update
- cd /root
- # download broadcom-sta-dkms and place in /root
- apt-get download broadcom-sta-dkms
- cd -
- LC_ALL=C apt-get install --reinstall --yes firmware-b43-installer firmware-b43legacy-installer
- apt-get purge --yes broadcom-sta-dkms broadcom-sta-source
- # this works without reboot for BCM4312
- # it takes some time before the wlan becomes ready
- rmmod wl
- modprobe ssb
- modprobe b43
- # otherwise reboot
- echo "it takes some seconds before the wlan becomes ready, otherwise reboot your system now"
- echo ""
- echo "broadcom wl driver backup package is stored in /root ..."
- else
- echo "bye.."
- fi
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN