diff options
Diffstat (limited to '')
| -rwxr-xr-x | scripts/status-linux | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/status-linux b/scripts/status-linux index a2061d1..6d107d0 100755 --- a/scripts/status-linux +++ b/scripts/status-linux | |||
| @@ -35,7 +35,8 @@ fi | |||
| 35 | #network="Network: $nwclean" | 35 | #network="Network: $nwclean" |
| 36 | 36 | ||
| 37 | # Thank you iwctl for saving us from this dreadful existence | 37 | # Thank you iwctl for saving us from this dreadful existence |
| 38 | network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" | 38 | network="$(iwctl station wlan0 show | grep 'Connected network' | \ |
| 39 | awk '{$1=$2=""; $0=$0; print}' | sed 's/^ .//')" | ||
| 39 | if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then | 40 | if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then |
| 40 | if [ -z "$network" ]; then | 41 | if [ -z "$network" ]; then |
| 41 | network="eth" | 42 | network="eth" |
