Fixed wifi module not working on some cards

This commit is contained in:
Manuel Palenzuela 2019-10-21 20:27:48 +01:00
parent 69c852b4a5
commit f754db9491
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
#!/bin/bash
# Prints out if there is an internet connection
# Requires an internet connection
INTERNET_ICON=''

View file

@ -8,7 +8,7 @@ WIFI_LOW_ICON=''
get_wifi()
{
if grep -q wlan* "/proc/net/wireless"; then
if grep -q wl* "/proc/net/wireless"; then
# Wifi quality percentage
percentage=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70)}'| xargs)
case $percentage in