diff options
-rw-r--r-- | cmdline.py | 6 | ||||
-rwxr-xr-x | gui.py | 6 | ||||
-rw-r--r-- | kickstart.py | 4 | ||||
-rw-r--r-- | text.py | 6 |
4 files changed, 22 insertions, 0 deletions
diff --git a/cmdline.py b/cmdline.py index de14ada32..0aa980285 100644 --- a/cmdline.py +++ b/cmdline.py @@ -72,6 +72,12 @@ class InstallInterface: def shutdown(self): pass + def suspend(self): + pass + + def resume(self): + pass + def progressWindow(self, title, text, total, updpct = 0.05, pulse = False): return ProgressWindow(title, text, total, updpct, pulse) @@ -1124,6 +1124,12 @@ class InstallInterface: def shutdown (self): pass + def suspend(self): + pass + + def resume(self): + pass + def enableNetwork(self, anaconda): from netconfig_dialog import NetworkConfigurator net = NetworkConfigurator(anaconda.id.network) diff --git a/kickstart.py b/kickstart.py index d1e989ce6..3a21eeb82 100644 --- a/kickstart.py +++ b/kickstart.py @@ -74,9 +74,13 @@ class AnacondaKSScript(Script): else: messages = "/dev/tty3" + if intf: + intf.suspend() rc = iutil.execWithRedirect(self.interp, ["/tmp/%s" % os.path.basename(path)], stdin = messages, stdout = messages, stderr = messages, root = scriptRoot) + if intf: + intf.resume() # Always log an error. Only fail if we have a handle on the # windowing system and the kickstart file included --erroronfail. @@ -535,6 +535,12 @@ class InstallInterface: self.screen.finish() self.screen = None + def suspend(self): + self.screen.suspend() + + def resume(self): + self.screen.resume() + def __init__(self): signal.signal(signal.SIGINT, signal.SIG_IGN) signal.signal(signal.SIGTSTP, signal.SIG_IGN) |