#!/bin/bash # returns succesful when nbd is ready if [ -b /dev/nbd0 ]; then exit 0 fi exit 1