4 lines
185 B
Bash
4 lines
185 B
Bash
#!/bin/bash
|
|
ip route | grep -q 'proton0' \
|
|
&& echo '{"text":"Connected","class":"connected","percentage":100}' \
|
|
|| echo '{"text":"Disconnected","class":"disconnected","percentage":0}'
|