1

Add original scripts

This commit is contained in:
eleksir
2016-09-04 22:20:40 +03:00
commit 8e3af042d2
128 changed files with 19003 additions and 0 deletions

20
reboot Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
BOOT_CONF=`/bin/cat /etc/default_config/BOOT.conf 2>/dev/null`
if [ -x /sbin/storage_util ];then
/sbin/storage_util --shutdown_check
if [ $? -eq 0 ];then
/sbin/log_tool -t 1 -a "Auto reboot was canceled because one volume was busy"
exit 0
fi
fi
. /etc/init.d/wait_RR
echo reboot start...
if [ "x${BOOT_CONF}" = "xTS-NASARM" ]; then
if [ -x /sbin/hal_app ]; then
/sbin/hal_app --se_sys_set_pic_wdt enc_sys_id=root,mode=1
else
/sbin/pic_raw 104 #enable pic watch dog timer 5 min,reboot
fi
fi
/sbin/reboot