summaryrefslogtreecommitdiff
path: root/scripts/live-bottom
diff options
context:
space:
mode:
authorBen Armstrong <synrg@debian.org>2010-01-31 14:13:21 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:07 +0100
commit9c20c7834babcfd6a3fccaaff3d0ca1d342d60b7 (patch)
tree139e5ae46f506c3463c2bd81d66e64c6bb011f25 /scripts/live-bottom
parent78f812de87f2bde7b83d9b87977a7e4cc6c29aa6 (diff)
downloadlive-boot-9c20c7834babcfd6a3fccaaff3d0ca1d342d60b7.tar.gz
live-boot-9c20c7834babcfd6a3fccaaff3d0ca1d342d60b7.zip
Only edit usplash init script if it exists.
Diffstat (limited to 'scripts/live-bottom')
-rwxr-xr-xscripts/live-bottom/19keyboard5
1 files changed, 4 insertions, 1 deletions
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