Fix bug 1987:
添加安装完成后的动作(重启/关机/待机)
修改: interface/ri_data.py
修改: interface/ri_inst_cli.py
修改: interface/ri_install.py
修改: main/setup
修改: text/ri_main.py
修改: text/ri_newt.py
Signed-off-by: sysadmin <zhihuipeng@linx-info.com>
This commit is contained in:
@@ -34,10 +34,16 @@ import partition_data as p_d
|
||||
|
||||
def install_over(ret):
|
||||
if ri_oper.Rate.value == 100 and ret == 0:
|
||||
if display.set_task_over():
|
||||
ret_set_task_over = display.set_task_over()
|
||||
if ret_set_task_over == 'reboot':
|
||||
print "reboot ..."
|
||||
os.system("reboot")
|
||||
else:
|
||||
elif ret_set_task_over == 'shutdown':
|
||||
print "shutdown ..."
|
||||
#os.system("shutdown -h now")
|
||||
os.system("eject")
|
||||
os.system("echo b >/proc/sysrq-trigger")
|
||||
elif ret_set_task_over == 'nothing':
|
||||
display.root_destroy()
|
||||
|
||||
def show_progress():
|
||||
|
||||
Reference in New Issue
Block a user