diff options
author | Matt Wilson <msw@redhat.com> | 2000-06-19 17:30:13 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-06-19 17:30:13 +0000 |
commit | 99bb1dd29e024a645122ab162ab2a0130285f97a (patch) | |
tree | 9a521c0ee574ad483a0e413f8aaf6871fa717660 /todo.py | |
parent | 25cb3c1608e2521196048f77f0da75959c16f881 (diff) | |
download | anaconda-99bb1dd29e024a645122ab162ab2a0130285f97a.tar.gz anaconda-99bb1dd29e024a645122ab162ab2a0130285f97a.tar.xz anaconda-99bb1dd29e024a645122ab162ab2a0130285f97a.zip |
patch for sun X from jj
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 21 |
1 files changed, 5 insertions, 16 deletions
@@ -1480,22 +1480,11 @@ class ToDo: pcmcia.createPcmciaConfig(self.instPath + "/etc/sysconfig/pcmcia") self.copyConfModules () if not self.x.skip and self.x.server: - if self.x.server[0:3] == 'Sun': - try: - os.unlink(self.instPath + "/etc/X11/X") - except: - pass - script = open(self.instPath + "/etc/X11/X","w") - script.write("#!/bin/bash\n") - script.write("exec /usr/X11R6/bin/Xs%s -fp unix/:-1 $@\n" % self.x.server[1:]) - script.close() - os.chmod(self.instPath + "/etc/X11/X", 0755) - else: - if os.access (self.instPath + "/etc/X11/X", os.R_OK): - os.rename (self.instPath + "/etc/X11/X", - self.instPath + "/etc/X11/X.rpmsave") - os.symlink ("../../usr/X11R6/bin/" + self.x.server, - self.instPath + "/etc/X11/X") + if os.access (self.instPath + "/etc/X11/X", os.R_OK): + os.rename (self.instPath + "/etc/X11/X", + self.instPath + "/etc/X11/X.rpmsave") + os.symlink ("../../usr/X11R6/bin/" + self.x.server, + self.instPath + "/etc/X11/X") self.x.write (self.instPath + "/etc/X11") self.setDefaultRunlevel () |