if [ -x /root/bin/setupcon ]
then
- if [ -f /root/etc/default/console-setup ]
- then
- # lenny
- KEYBOARD_FILE="/root/etc/default/console-setup"
- elif [ -f /root/etc/default/keyboard ]
+ if [ -f /root/etc/default/keyboard ]
then
# squeeze
- KEYBOARD_FILE="/root/etc/default/keyboard"
+ KEYBOARD_FILE="/etc/default/keyboard"
+ elif [ -f /root/etc/default/console-setup ]
+ then
+ # lenny
+ KEYBOARD_FILE="/etc/default/console-setup"
fi
- if [ -n "${KEYBOARD_FILE}" ]
+ if [ -n "/root${KEYBOARD_FILE}" ]
then
if [ "${cslayout}" ]
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