From 35ed969c6d20150c9ef0cf689611af2bb6656607 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 19 Apr 2006 15:38:19 +0000 Subject: Removed rescue-startx-stub for rhpxl simplification. --- command-stubs/Makefile | 2 +- command-stubs/rescue-startx-stub | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100755 command-stubs/rescue-startx-stub (limited to 'command-stubs') diff --git a/command-stubs/Makefile b/command-stubs/Makefile index b69270f18..e68983bba 100644 --- a/command-stubs/Makefile +++ b/command-stubs/Makefile @@ -1,7 +1,7 @@ include ../Makefile.inc STUBS = raidstart-stub raidstop-stub kudzu-probe-stub list-harddrives-stub \ - loadkeys-stub losetup-stub pump-stub mknod-stub rescue-startx-stub + loadkeys-stub losetup-stub pump-stub mknod-stub all: @echo "Nothing to do" diff --git a/command-stubs/rescue-startx-stub b/command-stubs/rescue-startx-stub deleted file mode 100755 index 3659efef9..000000000 --- a/command-stubs/rescue-startx-stub +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python -# -# -# Stub to start X in rescue mode with twm and an xterm -# - -import os, sys -import rhpxl.xserver as xserver -import rhpl.keyboard as keyboard - -# see if its even possible -if not os.access("/mnt/sysimage/usr/X11R6/bin/xterm", os.X_OK) or not os.access("/mnt/sysimage/usr/X11R6/bin/twm", os.X_OK): - print "Must have mounted an existing installation in rescue mode to work." - sys.exit(0) - -if len(sys.argv) > 1: - mode = sys.argv[1] -else: - mode = '800x600' - -xserver.probeHWandStartXServer(mode) -os.system("xterm&") -os.system("twm") -- cgit