X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-x;h=97eec09b173e981cee0987fab590d5b241e5ab25;hb=7933f6bdb88f191507546aea9fced98a97e0bc13;hp=5e325e1ca2b0193d304e0496c7711957092c03be;hpb=25953d430c25969726d1fe1a635536fbec4e0a7c;p=grml-x.git diff --git a/grml-x b/grml-x index 5e325e1..97eec09 100755 --- a/grml-x +++ b/grml-x @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # -*- coding: utf-8 -*- # vim: set et ts=4: @@ -9,6 +9,8 @@ # License: This file is licensed under the GPL v2. ############################################################################### +# Requires python 2.6 or, possibly, a newer version of python 2.X. + import fileinput, os, subprocess, sys, tempfile, time, traceback from optparse import OptionParser @@ -69,6 +71,7 @@ def build_bootparams(): f.close() walk_bootparams_path('/cdrom/bootparams') walk_bootparams_path('/live/image/bootparams') + walk_bootparams_path('/lib/live/mount/medium/bootparams') params = {} for p in ' '.join(lines).split(' '): if '=' in p: @@ -196,7 +199,7 @@ def main(): f.close() f = open(xinitrc, 'w') for line in lines: - if line.startswith('exec '): line = wm_exec + if line.strip().startswith('exec '): line = wm_exec f.write(line) os.fchmod(f.fileno(), 0750) f.close()