2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-22 10:10:08 +00:00

Use tee to redirect content to root file

Previously, a plain `>` redirect was used. However, that does not work
if the user cannot write to the destination. Since a redirect is a
separate process, prepending `sudo` does not help neither, as it would
only affect `echo`.

The appropriate solution under GNU/Linux is to use `tee`. This is what
is done here.
This commit is contained in:
Max Görner 2023-09-07 11:31:27 +02:00
parent b2f6d80e93
commit a9013104ba

View File

@ -72,10 +72,11 @@ Check the currently loaded module using `lsmod`. If you see `rtw88_core`,
`rtw88_usb`, or any name beginning with `rtw88_` then you are using the RTW88
driver. If you see `88x2bu` then you are using this RTW88x2BU driver.
To blacklist RTW88 8822bu USB driver, run the following command:
To blacklist RTW88 8822bu USB driver, run the following command. It will
_replace_ the existing `*.conf` file with the `echo`ed content.
```
echo "blacklist rtw88_8822bu" > /etc/modprobe.d/rtw8822bu.conf
echo "blacklist rtw88_8822bu" | sudo tee /etc/modprobe.d/rtw8822bu.conf
```
Then reboot your system.