1
Files
qnap-rc-scripts/poweroff
2016-09-04 22:20:40 +03:00

12 lines
282 B
Bash
Executable File

#!/bin/sh
if [ -x /sbin/storage_util ];then
/sbin/storage_util --shutdown_check
if [ $? -eq 0 ];then
/sbin/log_tool -t 1 -a "Auto shutdown was canceled because one volume was busy"
exit 0
fi
fi
. /etc/init.d/wait_RR
echo shutdown start...
/sbin/poweroff