diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-28 20:37:13 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-28 20:37:13 +0000 |
commit | 2c73af4093882a8059dabe1a820f425aed3e7c37 (patch) | |
tree | 0b2f2fa206260a50cab4363fdb9d51cb4df4d63d | |
parent | b31d5a05dcef06612d2f6632ac5180cca3e6a2bb (diff) | |
download | anaconda-2c73af4093882a8059dabe1a820f425aed3e7c37.tar.gz anaconda-2c73af4093882a8059dabe1a820f425aed3e7c37.tar.xz anaconda-2c73af4093882a8059dabe1a820f425aed3e7c37.zip |
don't die if the X file isn't there
-rw-r--r-- | todo.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1583,7 +1583,10 @@ class ToDo: self.copyConfModules () if not self.x.skip and self.x.server: if len (self.x.server) >= 3 and self.x.server[0:3] == 'Sun': - os.unlink(self.instPath + "/etc/X11/X") + 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:]) |