Check wlan in status instead of eth0

Signed-off-by: Nicolás A. Ortega Froysa <nicolas.ortega@zevenet.com>
This commit is contained in:
Nicolás A. Ortega Froysa 2023-07-03 09:27:58 +02:00
parent 2794405fb7
commit d0f84cb481

View File

@ -1,7 +1,7 @@
#!/bin/sh
DATE="$(date +"%F %H:%M" )"
NETWORK="eth: $(cat /sys/class/net/enx00e04c682335/operstate)"
NETWORK="wlan: $(cat /sys/class/net/wlp2s0/operstate)"
SPACE="$(cat $HOME/.cache/free-space)"
vol_status="$(cat $HOME/.cache/audio-control/vol_status)"
vol_level="$(cat $HOME/.cache/audio-control/vol_level)%"