mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
add 5 sec wait before checking publicIP in bootstrap + automatic install tweaks
This commit is contained in:
parent
ddfa458c4b
commit
954eb362a0
2 changed files with 7 additions and 1 deletions
|
@ -1 +1,5 @@
|
||||||
|
#as described in https://github.com/Fourdee/DietPi/issues/2488
|
||||||
|
mkdir -p /etc/profile.d
|
||||||
|
> /etc/profile.d/dietpi-debug.sh
|
||||||
dietpi-update
|
dietpi-update
|
||||||
|
rm /etc/profile.d/dietpi-debug.sh
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This script runs on every start calles by boostrap.service
|
# This script runs on every start called by boostrap.service
|
||||||
# It makes sure that the system is configured like the
|
# It makes sure that the system is configured like the
|
||||||
# default values or as in the config.
|
# default values or as in the config.
|
||||||
# For more details see background_raspiblitzSettings.md
|
# For more details see background_raspiblitzSettings.md
|
||||||
|
@ -279,6 +279,8 @@ if [ ${configExists} -eq 1 ]; then
|
||||||
source ${configFile}
|
source ${configFile}
|
||||||
|
|
||||||
# update public IP on boot
|
# update public IP on boot
|
||||||
|
# wait otherwise looking for publicIP fails
|
||||||
|
sleep 5
|
||||||
freshPublicIP=$(curl -s http://v4.ipv6-test.com/api/myip.php)
|
freshPublicIP=$(curl -s http://v4.ipv6-test.com/api/myip.php)
|
||||||
if [ ${#freshPublicIP} -eq 0 ]; then
|
if [ ${#freshPublicIP} -eq 0 ]; then
|
||||||
echo "WARNING: Was not able to determine external IP on startup." >> $logFile
|
echo "WARNING: Was not able to determine external IP on startup." >> $logFile
|
||||||
|
|
Loading…
Add table
Reference in a new issue