There was an error while loading. Please reload this page.
1 parent 5ff925b commit 47b02d3Copy full SHA for 47b02d3
1 file changed
src/start.sh
@@ -75,10 +75,9 @@ start() {
75
sleep 0.5
76
done
77
78
- # Wait until the FTL log contains the "FTL started" message before continuing
79
- while ! grep -q '########## FTL started' /var/log/pihole/FTL.log; do
80
- sleep 0.5
81
- done
+ # Wait until the FTL log contains the "FTL started" message before continuing, timeout after 10 seconds
+ logsize_before=$(stat -c%s /var/log/pihole/FTL.log)
+ /usr/bin/pihole-FTL wait-for '########## FTL started' /var/log/pihole/FTL.log 10 "${logsize_before}"
82
83
pihole updatechecker
84
local versionsOutput
0 commit comments