|
发表于 2010-5-14 08:57:06
|
显示全部楼层
你试试shutdown手册中的 This is performed by emitting the runlevel(7) event, which includes the new runlevel in the RUNLEVEL environment
variable as well as the previous runlevel (obtained from the environment or from /var/run/utmp) in the PREVLEVEL
variable. An additional INIT_HALT variable may be set, this will contain the value HALT when bringing the system
down for halt and POWEROFF when bringing the system down for power off. |
|