HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //usr/syno/bin/feasibilitycheck/poweroff.d/ShareSnapRestorePowerOff.sh
#!/bin/sh

SupportDualhead=`/bin/get_key_value /etc.defaults/synoinfo.conf support_dual_head`
if [ "yes" == "$SupportDualhead" ]; then
	local_role=`/usr/syno/synoaha/bin/synoaha --get-local-role`
	active=`/usr/syno/synoaha/bin/synoahastr --role-active`
	if [ "$active" != "$local_role" ]; then
		exit 0
	fi
fi

/usr/syno/sbin/synosharesnaptool is-restore-running

if [ $? -ne 0 ]; then
	exit 1
fi

exit 0