mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fixed trigger
This commit is contained in:
parent
d8ea32491c
commit
25551ca4df
2 changed files with 11 additions and 3 deletions
|
@ -444,6 +444,14 @@ sudo chmod +x /home/admin/_bootstrap.sh
|
|||
sudo cp ./assets/bootstrap.service /etc/systemd/system/bootstrap.service
|
||||
sudo systemctl enable bootstrap
|
||||
|
||||
# *** BOOTSTRAP ***
|
||||
# see background README for details
|
||||
echo ""
|
||||
echo "*** RASPI BACKGROUND SERVICE ***"
|
||||
sudo chmod +x /home/admin/_background.sh
|
||||
sudo cp ./assets/background.service /etc/systemd/system/background.service
|
||||
sudo systemctl enable background
|
||||
|
||||
# *** RASPIBLITZ IMAGE READY ***
|
||||
echo ""
|
||||
echo "**********************************************"
|
||||
|
|
|
@ -34,8 +34,8 @@ do
|
|||
####################################################
|
||||
|
||||
# every 5 minutes
|
||||
triggerRecheckDHCP=$(((counter % 300)+1))
|
||||
if [ triggerRecheckDHCP -eq 1 ]; then
|
||||
recheckDHCP=$((($counter % 300)+1))
|
||||
if [ "recheckDHCP" -eq 1 ]; then
|
||||
echo "*** RECHECK DHCP-SERVER ***"
|
||||
|
||||
# get the local network IP
|
||||
|
@ -59,7 +59,7 @@ do
|
|||
|
||||
# every 15min - not too often
|
||||
# because its a ping to external service
|
||||
recheckPublicIP=$(((counter % 60)+1))
|
||||
recheckPublicIP=$((($counter % 60)+1))
|
||||
if [ recheckPublicIP -eq 1 ]; then
|
||||
echo "*** RECHECK PUBLIC IP ***"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue