From 8734f8be82d65f9ccb491fa8fcc6a6fb04e2b6ae Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 17 Dec 2004 16:19:59 +0000 Subject: fix xml quoting issues 2004/12/17 10:01:23-06:00 anl.gov!desai switch to __name__ (Logical change 1.168) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@741 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Generators/Debconf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/Server/Generators') diff --git a/src/lib/Server/Generators/Debconf.py b/src/lib/Server/Generators/Debconf.py index 20247407c..25c6e2094 100644 --- a/src/lib/Server/Generators/Debconf.py +++ b/src/lib/Server/Generators/Debconf.py @@ -9,20 +9,20 @@ class Debconf(Generator): -> hostname -> video driver''' __name__ = 'Debconf' - __version__ = '$Revision$' + __version__ = '$Id$' __author__ = 'bcfg-dev@mcs.anl.gov' __provides__ = {'ConfigFile':{}} - probes = [Element("probe", name='VGA', interpreter='/bin/sh', source='Debconf')] + probes = [Element("probe", name='VGA', interpreter='/bin/sh', source=__name__)] probes[0].text = ''' XSERVER='/usr/bin/X11/X|/usr/X11R6/bin/X' if [ XFree86 -configure 2>/dev/null ] ; then - VGACARD=`tail -50 /root/XF86Config.new | grep Driver | awk -F\" '{print $2}'` + VGACARD=`tail -50 /root/XF86Config.new | grep Driver | awk -F\" '{print $2}'` elif ps auxww | egrep ${XSERVER} | grep -v grep > /dev/null ;then if [ -e /etc/X11/XF86Config ]; then - VGACARD=`tail -50 /etc/X11/XF86Config | grep Driver | awk -F\" '{print $2}'` + VGACARD=`tail -50 /etc/X11/XF86Config | grep Driver | awk -F\" '{print $2}'` else - VGACARD=`tail -50 /etc/X11/XF86Config-4 | grep Driver | awk -F\" '{print $2}'` + VGACARD=`tail -50 /etc/X11/XF86Config-4 | grep Driver | awk -F\" '{print $2}'` fi else VGACARD=nv -- cgit v1.2.3-1-g7c22