commit 1a5b904f5f4414d259919503aa3d3f6cb09afede
parent 39059afa5af82ec2427dab971685bb911cb7cb8e
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Mon, 11 May 2026 08:44:55 +0200
Fix status script for wifi with spaces in name
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/status-linux b/scripts/status-linux
@@ -35,7 +35,8 @@ fi
#network="Network: $nwclean"
# Thank you iwctl for saving us from this dreadful existence
-network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')"
+network="$(iwctl station wlan0 show | grep 'Connected network' | \
+ awk '{$1=$2=""; $0=$0; print}' | sed 's/^ .//')"
if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then
if [ -z "$network" ]; then
network="eth"