文件操作 - initial-setup-text
返回文件管理
返回主菜单
删除本文件
文件: /usr/libexec/initial-setup/initial-setup-text
编辑文件内容
#!/usr/bin/python import os from initial_setup import InitialSetup, InitialSetupError is_instance = InitialSetup(gui_mode=False) try: is_instance.run() except InitialSetupError: # Initial Setup using with text interface apparently failed exit(1) # check if we should reboot the machine instead of continuing to # the login screen if is_instance.reboot_on_quit: os.system("reboot") # Initial Setup using with text interface completed successfully exit(0)
修改文件时间
将文件时间修改为当前时间的前一年
删除文件