blob: 55aa793cea4333999296d7b2542c20bff66f49f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
while true; do
time="$(TZ=America/Chicago date +'%Z %H:%M')"
time="$time | $(TZ=Europe/Amsterdam date +'%Z %H:%M %Y/%m/%d')"
temp="CPU $(sensors k10temp-pci-00c3 | grep Tctl | cut -d: -f2 | tr -d ' +')"
wlp1s0="$(nmcli connection | grep wlp1s0 | cut -d\ -f1)"
if [ -z "$wlp1s0" ]; then wlp1s0="DN"; fi
wifi="WLS $wlp1s0"
bat="BAT $(battery)"
echo "all status $wifi | $bat | $temp | $time"
sleep 30s
done
|