mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 06:44:06 +02:00
Update 00-smb_mounts.sh
This commit is contained in:
@@ -62,8 +62,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
server="$(echo "$disk" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")"
|
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 1 -c 1 8.8.8.8 >/dev/null; then
|
||||||
ping -w 5 -c 1 "$server" >/dev/null || \
|
ping -w 5 -c 1 "$server" >/dev/null || \
|
||||||
bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?"
|
( bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?" && \
|
||||||
break
|
break )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prepare mount point
|
# Prepare mount point
|
||||||
|
|||||||
Reference in New Issue
Block a user