Update upnet

This commit is contained in:
Eduard Tolosa 2020-03-11 21:45:06 -05:00 committed by GitHub
parent 9fa247f14c
commit eaf5afa46c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ fi
# Change the ASPM mode using the Link Control Register according to https://wireless.wiki.kernel.org/en/users/documentation/aspm#enabling_aspm_with_setpci (requires pciutils) # Change the ASPM mode using the Link Control Register according to https://wireless.wiki.kernel.org/en/users/documentation/aspm#enabling_aspm_with_setpci (requires pciutils)
if command -v setpci >/dev/null; then if command -v setpci >/dev/null; then
# Replace 00:1c.5 if needed. Execute `lspci | grep -i wifi | awk '{print $1}'`, then have in mind that result. Now execute `lspci -t` and see where that value belongs.
if setpci -s 00:1c.5 0x50.B=0x40 && sleep 1 && modprobe rtwpci; then if setpci -s 00:1c.5 0x50.B=0x40 && sleep 1 && modprobe rtwpci; then
sleep 2 sleep 2
# Uncomment the next line and change it to match your network services and init in use. # Uncomment the next line and change it to match your network services and init in use.