live: fix 20-locale

It shouldn't overwrite the pre-existing configuration
but should fire if there's none.
This commit is contained in:
Michael Shigorin 2012-12-24 01:21:15 +04:00
parent d94232fb87
commit 43c6fce4d1

View File

@ -1,8 +1,10 @@
#!/bin/sh -efu
# if no means for locale setup are employed,
# it should still be somewhat reasonable
# it should still be at least marginally reasonable
# NB: keyboard layout not included!
if [ -s /etc/sysconfig/i18n ]; then exit 0; fi
mkdir -p /etc/sysconfig
cat >> /etc/sysconfig/i18n << _EOF_
# mkimage-profiles live 20-locale hook