mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
Fixed wifi module not working on some cards
This commit is contained in:
parent
69c852b4a5
commit
f754db9491
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Prints out if there is an internet connection
|
||||
# Requires an internet connection
|
||||
|
||||
INTERNET_ICON=''
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue