mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-21 18:19:56 +01:00
Add "bel" to monitoring function
This commit is contained in:
parent
6cfb2a5b9f
commit
a4448c29a3
@ -119,6 +119,7 @@ pnotify-online() {
|
||||
|
||||
while true; do
|
||||
if ping -c 1 -W 1 "$ip_address" >/dev/null; then
|
||||
echo -e "\07*Ding*"
|
||||
echo "$1 is online now."
|
||||
pushover "$1 is online now."
|
||||
break
|
||||
@ -132,6 +133,7 @@ pnotify-offline() {
|
||||
|
||||
while true; do
|
||||
if ! ping -c 1 -W 1 "$ip_address" >/dev/null; then
|
||||
echo -e "\07*Ding*"
|
||||
echo "$1 is offline now."
|
||||
pushover "$1 is offline now."
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user