summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmdline.py6
-rwxr-xr-xgui.py6
-rw-r--r--kickstart.py4
-rw-r--r--text.py6
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)
diff --git a/gui.py b/gui.py
index 456d427ad..40af16435 100755
--- a/gui.py
+++ b/gui.py
@@ -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.
diff --git a/text.py b/text.py
index a87ed5e29..ec00e0b00 100644
--- a/text.py
+++ b/text.py
@@ -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)