summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-09-09 15:36:11 +0000
committerErik Troan <ewt@redhat.com>1999-09-09 15:36:11 +0000
commitf2acded806376d25be39ab0f5122d6ba56ee16d8 (patch)
treef917de192a0a5e6cf68b3627bb510f3b8cc8697e /kickstart.py
parent4a2d20b1a9f1a184df86542adead0adf81cfd408 (diff)
downloadanaconda-f2acded806376d25be39ab0f5122d6ba56ee16d8.tar.gz
anaconda-f2acded806376d25be39ab0f5122d6ba56ee16d8.tar.xz
anaconda-f2acded806376d25be39ab0f5122d6ba56ee16d8.zip
added (untested) xconfig to kickstart
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py38
1 files changed, 37 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index 8e427aa67..2ef6d5998 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -90,6 +90,40 @@ class Kickstart(InstallClass):
self.addToSkipList("timezone")
+ def doXconfig(self, args):
+ (args, extra) = isys.getopt(args, '',
+ [ 'server=', 'card=', 'monitor=', 'hsync=', 'vsync=',
+ 'startxonboot', 'noprobe' ])
+
+ server = None
+ card = None
+ monitor = None
+ hsync = None
+ vsync = None
+ noProbe = 0
+ startX = 0
+
+ for n in args:
+ (str, arg) = n
+ if (str == "--noprobe"):
+ noProbe = 1
+ elif (str == "--server"):
+ server = arg
+ elif (str == "--card"):
+ card = arg
+ elif (str == "--monitor"):
+ monitor = arg
+ elif (str == "--hsync"):
+ hsync = arg
+ elif (str == "--vsync"):
+ vsync = arg
+ elif (str == "--startxonboot"):
+ startX = 1
+
+ self.configureX(server, card, monitor, hsync, vsync, noProbe,
+ startX)
+ self.addToSkipList("xconfig")
+
def doInstall(self, args):
self.installType = "install"
@@ -163,7 +197,8 @@ class Kickstart(InstallClass):
"mmhittab" : "MM - HitTablet (serial)"
}
- (args, extra) = isys.getopt(args, '', [ 'device', 'emulthree' ])
+ (args, extra) = isys.getopt(args, '', [ 'device', 'emulthree',
+ 'kickstart'])
mouseType = "none"
device = None
emulThree = 0
@@ -201,6 +236,7 @@ class Kickstart(InstallClass):
"text" : None ,
"timezone" : self.doTimezone ,
"upgrade" : self.doUpgrade ,
+ "xconfig" : self.doXconfig ,
"xdisplay" : None ,
"zerombr" : self.doZeroMbr ,
}