[Fai-commit] r3038 - in people/eartoast/features/fcopy-preinst/examples/simple: files/etc/X11/XF86Config-4 scripts/DEMO

fai-repository at svn.debian.org fai-repository at svn.debian.org
Fri Nov 11 08:28:14 UTC 2005


Author: glaweh-guest
Date: 2005-11-11 08:28:14 +0000 (Fri, 11 Nov 2005)
New Revision: 3038

Added:
   people/eartoast/features/fcopy-preinst/examples/simple/files/etc/X11/XF86Config-4/preinst
Modified:
   people/eartoast/features/fcopy-preinst/examples/simple/scripts/DEMO/10-misc
Log:
move the X driver substitution to a fcopy preinst script as a simple demo
how to use preinst


Added: people/eartoast/features/fcopy-preinst/examples/simple/files/etc/X11/XF86Config-4/preinst
===================================================================
--- people/eartoast/features/fcopy-preinst/examples/simple/files/etc/X11/XF86Config-4/preinst	2005-11-10 23:43:24 UTC (rev 3037)
+++ people/eartoast/features/fcopy-preinst/examples/simple/files/etc/X11/XF86Config-4/preinst	2005-11-11 08:28:14 UTC (rev 3038)
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -n "$videodrv" ] || videodrv=vesa
+perl -pi -e "s/%%VIDEODRV%%/$videodrv/" $2


Property changes on: people/eartoast/features/fcopy-preinst/examples/simple/files/etc/X11/XF86Config-4/preinst
___________________________________________________________________
Name: svn:executable
   + *

Modified: people/eartoast/features/fcopy-preinst/examples/simple/scripts/DEMO/10-misc
===================================================================
--- people/eartoast/features/fcopy-preinst/examples/simple/scripts/DEMO/10-misc	2005-11-10 23:43:24 UTC (rev 3037)
+++ people/eartoast/features/fcopy-preinst/examples/simple/scripts/DEMO/10-misc	2005-11-11 08:28:14 UTC (rev 3038)
@@ -5,9 +5,6 @@
 ifclass XFREE && {
     fcopy -M /etc/X11/XF86Config   && rm -f $target/etc/X11/XF86Config-4
     fcopy -M /etc/X11/XF86Config-4 && rm -f $target/etc/X11/XF86Config
-    [ -n "$videodrv" ] || videodrv=vesa
-    grep -q %%VIDEODRV%% $target/etc/X11/XF86Config-4 &&
-    perl -pi.orig -pe "s/%%VIDEODRV%%/$videodrv/" $target/etc/X11/XF86Config-4
 }
 
 # add a demo user account




More information about the Fai-commit mailing list