„beepbeep.sh“ ändern
This commit is contained in:
parent
ea161295af
commit
411dfe3d2e
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue