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

file="/usr/syno/etc/disk_health_record_time"
if [ -e $file ]; then
	m1=`cat $file | awk '{print $2}'`
	y1=`cat $file | awk '{print $5}'`
else
	m1=""
	y1=""
fi

m2=`date | awk '{print $2}'`
y2=`date | awk '{print $6}'`
if [ "$m1" != "$m2" -o "$y1" != "$y2" ]; then
	echo "`/bin/date -u`: execute /usr/syno/bin/syno_disk_health_record ..."
	/usr/syno/bin/syno_disk_health_record
fi