„beepbeep.sh“ hinzufügen
This commit is contained in:
parent
7336067a8f
commit
ea161295af
1 changed files with 29 additions and 0 deletions
29
beepbeep.sh
Normal file
29
beepbeep.sh
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Little start stop beep script for my firewall
|
||||||
|
# 2022 by DeltaLima
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
do
|
||||||
|
beep -f 200 -l 1
|
||||||
|
#sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
beep -d 20 -f 1200 -l 69 -n -f 1400 -l 69 -n -f 1800 -l 69 -n -f 2400 -d 149 -n -f 2100 -l 149 -n -f 2400 -l 149
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
beep -d 20 -f 1200 -l 100 -n -f 800 -l 100
|
||||||
|
while ping -c 1 192.168.254.3 > /dev/null
|
||||||
|
do
|
||||||
|
beep -f 200 -l 1
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in a new issue