mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-02 04:15:47 +01:00
Update mips_run.py
This commit is contained in:
@@ -134,11 +134,14 @@ class StartImage(Screen):
|
||||
self.close()
|
||||
|
||||
def getREBOOTSYSTEM():
|
||||
for line in open("/etc/hostname"):
|
||||
__module__ = __name__
|
||||
|
||||
def __init__(self, session):
|
||||
Screen.__init__(self, session)
|
||||
for line in open("/etc/hostname"):
|
||||
if "dm500hd" in line or "dm800se" in line or "dm800" in line or "dm800se" in line or "dm8000" in line:
|
||||
if fileExists('%sImageBoot/%s/squashfs-images' % (getNeoLocation(), getImageNeoBoot())):
|
||||
os.system('ln -sf "%sImageBoot/%s/squashfs-images" "//squashfs-images"' % (getNeoLocation(), getImageNeoBoot()))
|
||||
os.system('sleep 5;reboot -f; shutdown -r now &')
|
||||
else:
|
||||
os.system('sleep 5;reboot -f; shutdown -r now &')
|
||||
#self.session.open(TryQuitMainloop, 2)
|
||||
self.session.open(TryQuitMainloop, 2)
|
||||
|
||||
Reference in New Issue
Block a user