„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
|
# Little start stop beep script for my firewall
|
||||||
# 2022 by DeltaLima
|
# 2022 by DeltaLima
|
||||||
|
|
||||||
|
$iptowatch=192.168.254.1
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
|
|
||||||
beep -d 20 -f 800 -l 100 -n -f 1200 -l 100
|
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
|
do
|
||||||
beep -f 200 -l 1
|
beep -f 200 -l 1
|
||||||
#sleep 1
|
#sleep 1
|
||||||
|
@ -18,7 +18,7 @@ case $1 in
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
beep -d 20 -f 1200 -l 100 -n -f 800 -l 100
|
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
|
do
|
||||||
beep -f 200 -l 1
|
beep -f 200 -l 1
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -26,4 +26,4 @@ case $1 in
|
||||||
|
|
||||||
beep -d 20 -f 2400 -l 149 -n -f 2100 -l 149 -n -f 2400 -l 149 -n -f 1800 -l 69 -n -f 1400 -l 69 -n -f 1200 -l 69
|
beep -d 20 -f 2400 -l 149 -n -f 2100 -l 149 -n -f 2400 -l 149 -n -f 1800 -l 69 -n -f 1400 -l 69 -n -f 1200 -l 69
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
Loading…
Reference in a new issue