From 2024ce79bf253be956252bb31574f47f77062e02 Mon Sep 17 00:00:00 2001 From: Eduard Tolosa Date: Wed, 11 Mar 2020 22:11:37 -0500 Subject: [PATCH] Update --- system-bin/upnet | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system-bin/upnet b/system-bin/upnet index 7acd4fb..5b448c0 100755 --- a/system-bin/upnet +++ b/system-bin/upnet @@ -9,10 +9,12 @@ 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) 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 >/dev/null; then + sleep 2 + modprobe rtwpci sleep 2 # Uncomment the next line and change it to match your network services and init in use. - systemctl restart iwd systemd-networkd systemd-resolved + # systemctl restart iwd systemd-networkd systemd-resolved echo "ASPM configurations applied. Restart your network services if you haven't set them in the script." else echo "An unknown error has occurred. Reboot and try again."