[Demudi-commits] r200 - in demudi-debian-cd/trunk: data/sarge debian

Free Ekanayaka free-guest@haydn.debian.org
Mon, 15 Nov 2004 06:39:05 -0700


Author: free-guest
Date: 2004-11-15 06:36:36 -0700 (Mon, 15 Nov 2004)
New Revision: 200

Modified:
   demudi-debian-cd/trunk/data/sarge/demudi_i386_late_command
   demudi-debian-cd/trunk/debian/changelog
Log:
  * Customising /etc/skel/.bash_profile with the late command

Modified: demudi-debian-cd/trunk/data/sarge/demudi_i386_late_command
===================================================================
--- demudi-debian-cd/trunk/data/sarge/demudi_i386_late_command	2004-11-15 12:03:30 UTC (rev 199)
+++ demudi-debian-cd/trunk/data/sarge/demudi_i386_late_command	2004-11-15 13:36:36 UTC (rev 200)
@@ -17,18 +17,22 @@
 splash=/boot/grub/splashimages/agnula-romantic.xpm.gz
 
 for package in $packages; do
-	if ! apt-get install -y $package; then
-		echo "Failed to install $pakcage"
-	fi
+    if ! apt-get install -y $package; then
+	echo "Failed to install $pakcage"
+    fi
 done
 
 if [ -e /boot/grub/splash.xpm.gz ]; then
 	rm /boot/grub/splash.xpm.gz
 fi
 if [ -x $grub ] && [ -f $splash ]; then
-	ln -sf $splash /boot/grub/splash.xpm.gz
-	sed -i -e 's/^# kopt=\(.*\)/# kopt=\1 vga=791 video=vesafb:ypan/g' /boot/grub/menu.lst
-	$grub
+    ln -sf $splash /boot/grub/splash.xpm.gz
+    sed -i -e 's/^# kopt=\(.*\)/# kopt=\1 vga=791 video=vesafb:ypan/g' /boot/grub/menu.lst
+    $grub
 else
 	echo "Failed to install the splash image"
 fi
+
+if [ -f /etc/skel/.bash_profile ]; then
+    perl -i -e 'while (<>) { $l = $_; if ($_ =~ "^#if") {$flag=1} if ($l =~ s/^#(.*)/\1/g && $flag) {print $l} else {print $_} if ($_ =~ "^#fi") {$flag=0}} ' /etc/skel/.bash_profile
+fi

Modified: demudi-debian-cd/trunk/debian/changelog
===================================================================
--- demudi-debian-cd/trunk/debian/changelog	2004-11-15 12:03:30 UTC (rev 199)
+++ demudi-debian-cd/trunk/debian/changelog	2004-11-15 13:36:36 UTC (rev 200)
@@ -22,6 +22,7 @@
   * Excluded discover2
   * Added base_include for extra base system packages
   * Better documentation in README.Debian
+  * Customising /etc/skel/.bash_profile with the late command
 
  -- Free Ekanayaka <free@agnula.org>  Sun, 31 Oct 2004 10:14:37 +0100
  
\ No newline at end of file