12 lines
314 B
Plaintext
12 lines
314 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
nchk=$(/home/gmgauthier/.local/bin/ifcheck)
|
||
|
|
||
|
|
||
|
ping -q -n -c1 "1.1.1.1" &>"/dev/null"
|
||
|
if [[ "${?}" -ne 0 ]]; then
|
||
|
/home/gmgauthier/.local/bin/cecho "BRed" "On_Black" "UNAVAILABLE"
|
||
|
elif [[ "${#args[@]}" -eq 0 ]]; then
|
||
|
/home/gmgauthier/.local/bin/cecho "IGreen" "On_Black" "AVAILABLE"
|
||
|
fi
|