summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-05-11 08:44:55 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-05-11 08:44:55 +0200
commit1a5b904f5f4414d259919503aa3d3f6cb09afede (patch)
treec103a84f935578df42bd2a2121821f0a826ef056 /scripts
parent39059afa5af82ec2427dab971685bb911cb7cb8e (diff)
downloadconfig-1a5b904f5f4414d259919503aa3d3f6cb09afede.tar.gz
config-1a5b904f5f4414d259919503aa3d3f6cb09afede.zip
Fix status script for wifi with spaces in name
Diffstat (limited to '')
-rwxr-xr-xscripts/status-linux3
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
38network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" 38network="$(iwctl station wlan0 show | grep 'Connected network' | \
39 awk '{$1=$2=""; $0=$0; print}' | sed 's/^ .//')"
39if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then 40if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then
40 if [ -z "$network" ]; then 41 if [ -z "$network" ]; then
41 network="eth" 42 network="eth"

Generated with cgit - Back to sebastiano.tronto.net