Commit 6a0170b8 authored by kytv's avatar kytv

Make the function name more closely match what it does

parent dc8ab8dc
......@@ -40,7 +40,7 @@ i2p_reseed_completed() {
grep -q "Reseed complete" "${I2P_WRAPPER_LOG}"
}
i2p_has_bootstrapped() {
i2p_built_a_tunnel() {
netstat -nlp | grep -qwF "$(i2p_eep_proxy_address)"
}
......
......@@ -15,7 +15,7 @@ export TEXTDOMAIN
# Import wait_until()
. /usr/local/lib/tails-shell-library/common.sh
# Import i2p_has_bootstrapped, i2p_reseed_failed, i2p_router_console_is_ready(),
# Import i2p_built_a_tunnel, i2p_reseed_failed, i2p_router_console_is_ready(),
# and set_best_i2p_router_console_lang().
. /usr/local/lib/tails-shell-library/i2p.sh
......@@ -61,8 +61,8 @@ bootstrap_failure() {
exit 1
}
wait_until_i2p_has_bootstrapped() {
wait_until ${I2P_TUNNEL_BUILD_TIMEOUT} i2p_has_bootstrapped
wait_until_i2p_builds_a_tunnel() {
wait_until ${I2P_TUNNEL_BUILD_TIMEOUT} i2p_built_a_tunnel
}
notify_bootstrap_success() {
......@@ -88,7 +88,7 @@ case "${1}" in
if i2p_fails_to_bootstrap; then
bootstrap_failure
fi
wait_until_i2p_has_bootstrapped || bootstrap_failure
wait_until_i2p_builds_a_tunnel || bootstrap_failure
notify_bootstrap_success
;;
stop)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment