diff options
author | Simon Rettberg | 2022-02-16 18:16:00 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-02-16 18:16:00 +0100 |
commit | 0a0a1f130f8183751950785b835a2cbb0790b028 (patch) | |
tree | 35c3e5cfa8bf156f8ac43cbcd3599b3c6134ccfc /core/modules/dnbd3-proxy-mode | |
parent | [run-virt] Allow FORWARDing for all additional bridged NICs (diff) | |
download | mltk-0a0a1f130f8183751950785b835a2cbb0790b028.tar.gz mltk-0a0a1f130f8183751950785b835a2cbb0790b028.tar.xz mltk-0a0a1f130f8183751950785b835a2cbb0790b028.zip |
[dnbd3-proxy-mode] Local caching: fix block device check
Diffstat (limited to 'core/modules/dnbd3-proxy-mode')
-rwxr-xr-x | core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy index e44fc15a..a36007d9 100755 --- a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy +++ b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy @@ -283,7 +283,7 @@ if [ -n "$islocal" ]; then adduser dnbd3 fuse # Start service, is not symlinked when not in proxy mode systemctl --no-block start dnbd3-proxy.service - if [ -d /dev/dnbd0 ] && [ "$( cat /sys/block/dnbd0/net/rid )" -gt 0 ]; then + if [ -b /dev/dnbd0 ] && [ "$( cat /sys/block/dnbd0/net/rid )" -gt 0 ]; then # give it some time to start usleep 500000 # add the server |