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/etc/rc.sysv/RCPower.sh
#!/bin/sh
# Copyright (c) 2000-2003 Synology Inc. All rights reserved.

# workaround fix for #41575
if [ -f /var/.updater_enable_rcpower ]; then
	echo "Keep RCPower enable"
	exit
fi

Support=`/bin/grep -s ^supportrcpower /etc.defaults/synoinfo.conf | awk -F \" '{print $2}'`
if [ "yes" = "$Support" ]; then
	Run=`/bin/grep -s ^enableRCPower /etc/synoinfo.conf | awk -F \" '{print $2}'`


	if [ "yes" = "$Run" ]; then
		/usr/syno/bin/synoexternal -rcpoweron
	else
		/usr/syno/bin/synoexternal -rcpoweroff
	fi
fi