mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 01:31:51 +02:00
Update 00-smb_mounts.sh
This commit is contained in:
@@ -68,7 +68,7 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
# test if smb port is open
|
# test if smb port is open
|
||||||
nc -w 2 -z "$server" 445 2>/dev/null || \
|
nc -w 2 -z "$server" 445 2>/dev/null || \
|
||||||
# test with ping also if different port is used
|
# test with ping also if different port is used
|
||||||
ping -w 5 -c 1 "$server" >/dev/null || \
|
ping -w 2 -c 1 "$server" >/dev/null || \
|
||||||
bashio::log.warning "Your server $server from $disk doesn't seem reachable, is it correct?"
|
bashio::log.warning "Your server $server from $disk doesn't seem reachable, is it correct?"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user