summaryrefslogtreecommitdiffstats
path: root/installclasses/reconfig.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-06-20 01:46:34 +0000
committerErik Troan <ewt@redhat.com>2001-06-20 01:46:34 +0000
commitd2b85ad932ca315f00ca72527e87ea9a059f74e6 (patch)
tree3bc31ce8d092457372b4cd1b1bad60b45dad0b32 /installclasses/reconfig.py
parent1a690b55258ae286bee27e4d1db22c527862837b (diff)
downloadanaconda-d2b85ad932ca315f00ca72527e87ea9a059f74e6.tar.gz
anaconda-d2b85ad932ca315f00ca72527e87ea9a059f74e6.tar.xz
anaconda-d2b85ad932ca315f00ca72527e87ea9a059f74e6.zip
merge from (now defunct) dispatch branch
Diffstat (limited to 'installclasses/reconfig.py')
-rw-r--r--installclasses/reconfig.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/installclasses/reconfig.py b/installclasses/reconfig.py
new file mode 100644
index 000000000..bc6614f57
--- /dev/null
+++ b/installclasses/reconfig.py
@@ -0,0 +1,52 @@
+from installclass import BaseInstallClass
+from instdata import InstallData
+from translate import N_
+from translate import _
+import os
+import iutil
+
+class ReconfigInstallData(InstallData):
+
+ def write(self, instPath):
+ self.langSupport.write (instPath)
+ self.keyboard.write (instPath)
+ self.network.write (instPath)
+ self.auth.write (instPath)
+ self.firewall.write (instPath)
+ self.timezone.write (instPath)
+ self.rootPassword.write (instPath, self.auth)
+ self.accounts.write (instPath, self.auth)
+
+ def writeKS(self, file):
+ pass
+
+class InstallClass(BaseInstallClass):
+ name = "reconfig"
+ pixmap = None
+ sortPriority = 999999
+ hidden = 1
+
+ parentClass = None
+
+ def setSteps(self, dispatch):
+ dispatch.setStepList(
+ "reconfigwelcome",
+ "reconfigkeyboard",
+ "network",
+ "firewall",
+ "languagesupport",
+ "timezone",
+ "accounts",
+ "authentication",
+ "writeconfig",
+ "reconfigcomplete"
+ )
+
+ installDataClass = ReconfigInstallData
+
+ def __init__(self, expert):
+ BaseInstallClass.__init__(self, expert)
+
+ if (iutil.getDefaultRunlevel() != '5' or
+ not os.access("/etc/X11/XF86Config", os.R_OK)):
+ forceTextMode = 1