#!/bin/sh call_from=$1 if [ "switchover-upgrade" == "$call_from" ]; then exit fi if [ -z "`/var/packages/ScsiTarget/target/bin/synoiscsiwebapi target list "" all | /bin/grep 'status: connected'`" ]; then exit else exit 1 fi