diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-13 18:56:25 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-13 18:56:25 +0000 |
commit | 770220d29752c637fda5ecc4072efce161b1499c (patch) | |
tree | 6a18d86ee6429d60d3c0340e499db8913a75f003 /xserver.py | |
parent | 5da684416bce7bae54b566ceee34198dcdc2e8a6 (diff) | |
download | anaconda-770220d29752c637fda5ecc4072efce161b1499c.tar.gz anaconda-770220d29752c637fda5ecc4072efce161b1499c.tar.xz anaconda-770220d29752c637fda5ecc4072efce161b1499c.zip |
jj patches, fixups for upgrade lilo stuff
Diffstat (limited to 'xserver.py')
-rw-r--r-- | xserver.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/xserver.py b/xserver.py index 23dc5251a..b4e2789a9 100644 --- a/xserver.py +++ b/xserver.py @@ -33,20 +33,25 @@ def startX(): f.close except: pass + elif mouseDev == 'sunmouse': + mousePrototol = "Sun" + mouseEmulate = 0 else: mouseProtocol = "Microsoft" mouseEmulate = 1 x = XF86Config ((mouseProtocol, mouseEmulate, mouseDev)) x.probe () - if x.server: + if x.server[0:3] == 'Sun': + serverPath = '/usr/X11R6/bin/Xs' + x.server[1:] + elif x.server: serverPath = '/usr/X11R6/bin/XF86_' + x.server else: print "Unknown card, falling back to VGA16" serverPath = '/usr/X11R6/bin/XF86_VGA16' if not os.access (serverPath, os.X_OK): - print serverpath, "missing. Falling back to VGA16" + print serverPath, "missing. Falling back to VGA16" serverPath = '/usr/X11R6/bin/XF86_VGA16' settings = { "mouseDev" : '/dev/' + mouseDev , @@ -101,8 +106,16 @@ EndSection server = os.fork() if (not server): print "starting", serverPath - os.execv(serverPath, [serverPath, ':1', '-xf86config', - '/tmp/XF86Config', 'vt7']) + if serverPath[0:19] == '/usr/X11R6/bin/Xsun': + try: + os.unlink("/dev/mouse") + except: + pass + os.symlink(mouseDev, "/dev/mouse") + os.execv(serverPath, [serverPath, 'vt7', '-dev', '/dev/' + x.device]) + else: + os.execv(serverPath, [serverPath, ':1', '-xf86config', + '/tmp/XF86Config', 'vt7']) # give time for the server to fail (if it is going to fail...) time.sleep (1) |