From 9c20c7834babcfd6a3fccaaff3d0ca1d342d60b7 Mon Sep 17 00:00:00 2001 From: Ben Armstrong Date: Sun, 31 Jan 2010 14:13:21 +0100 Subject: [PATCH] Only edit usplash init script if it exists. --- scripts/live-bottom/19keyboard | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/live-bottom/19keyboard b/scripts/live-bottom/19keyboard index 658e44a..52a6a58 100755 --- a/scripts/live-bottom/19keyboard +++ b/scripts/live-bottom/19keyboard @@ -104,7 +104,10 @@ then live-preseed /root console-setup/optionscode '' false live-preseed /root console-setup/codesetcode '' false - sed -i 's/CONSOLE_SCREEN=$/CONSOLE_SCREEN=setupcon/; t END; b; : END; n; b END' /root/etc/init.d/usplash + if [ -f /root/etc/init.d/usplash ] + then + sed -i 's/CONSOLE_SCREEN=$/CONSOLE_SCREEN=setupcon/; t END; b; : END; n; b END' /root/etc/init.d/usplash + fi fi elif [ -e /root/usr/sbin/install-keymap ] then -- 2.1.4