From a11264ed76ee050de3719f27c434c5aaa83be3a6 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:50:48 +0200 Subject: [PATCH] Allow non pingable https://github.com/alexbelgium/hassio-addons/issues/929 --- .templates/00-smb_mounts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index 36b40446c..366434ca0 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -60,9 +60,9 @@ if bashio::config.has_value 'networkdisks'; then # Does server exists server="$(echo "$disk" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")" - if ping -w 1 -c 1 8.8.8.8 >/dev/null; then + if ping -w 5 -c 1 8.8.8.8 >/dev/null; then ping -w 5 -c 1 "$server" >/dev/null || \ - { bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?"; break 2; } + bashio::log.warning "Your server $server from $disk doesn't ping, is it correct?" fi # Prepare mount point