„beepbeep.sh“ ändern

This commit is contained in:
DeltaLima 2022-12-09 21:23:14 +00:00
parent ea161295af
commit 411dfe3d2e

View file

@ -2,12 +2,12 @@
# Little start stop beep script for my firewall
# 2022 by DeltaLima
$iptowatch=192.168.254.1
case $1 in
start)
beep -d 20 -f 800 -l 100 -n -f 1200 -l 100
while ! ping -c 1 192.168.254.3 > /dev/null
while ! ping -c 1 $iptowatch > /dev/null
do
beep -f 200 -l 1
#sleep 1
@ -18,7 +18,7 @@ case $1 in
stop)
beep -d 20 -f 1200 -l 100 -n -f 800 -l 100
while ping -c 1 192.168.254.3 > /dev/null
while ping -c 1 $iptowatch > /dev/null
do
beep -f 200 -l 1
sleep 1