分页: 1 / 1

at 命令停电后再来电怎么还会执行?

发表于 : 2012-05-22 12:38
TeliuTe
放在 /etc/rc.local 里,每天执行定时关机,同时 BIOS 里设置定时开机
偶尔断电后,第二天不会自动开机,按电源键开机到出现 Ubuntu 这个单词的时候会自动关机
请教这是怎么回事如何避免

代码: 全选

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo "/opt/lampp/lampp stop"|at 19:49
echo "init 0"|at 19:50

exit 0