[SCM] Debian Live initramfs hook branch, master, updated. 1.157.2-1-17-gb4e875c

Daniel Baumann daniel at debian.org
Fri Jun 19 13:46:16 UTC 2009


The following commit has been merged in the master branch:
commit b4e875cf42126bb9b1b08aaebcf8d517258d479c
Author: Luigi Capriotti <l.capriotti at xbmc.org>
Date:   Fri Jun 19 15:35:44 2009 +0200

    Fixing invalid mangling of /etc/event.d/tty.

diff --git a/scripts/live-bottom/25configure_init b/scripts/live-bottom/25configure_init
index b0ac498..f55dd0e 100755
--- a/scripts/live-bottom/25configure_init
+++ b/scripts/live-bottom/25configure_init
@@ -77,7 +77,8 @@ then
 		then
 			for f in /root/etc/event.d/tty*
 			do
-				sed -i -e "s|^respawn.*|respawn /bin/login -f ${USERNAME} </dev/$(basename ${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
+				sed -i -e "/^respawn$/!s|^respawn.*|respawn /bin/login -f ${USERNAME} </dev/$(basename ${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
+				sed -i -e "s|^exec.*|exec /bin/login -f ${USERNAME} </dev/$(basename ${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
 			done
 		fi
 	fi

-- 
Debian Live initramfs hook



More information about the debian-live-changes mailing list