diff options
Diffstat (limited to 'command-stubs')
-rw-r--r-- | command-stubs/Makefile | 2 | ||||
-rwxr-xr-x | command-stubs/rescue-startx-stub | 23 |
2 files changed, 1 insertions, 24 deletions
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") |