home
/
code
/
khatus.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
de7fd588797cf591d26a409b6db24a4f3c62c2df
[khatus.git]
/
bin
/
khatus_sensor_net_wifi_status
1
#! /bin/sh
2
3
set -e
4
5
nmcli \
6
-f
ACTIVE
,
SSID
,
SIGNAL \
7
-t
\
8
d wifi \
9
|
awk
\
10
-F
':'
\
11
'
12
BEGIN {wifi_status = "--"}
13
$1
== "yes" {wifi_status =
$2
":"
$3
"%"}
14
END {print wifi_status}
15
'
This page took
0.041659 seconds
and
3
git commands to generate.