Fix $LANG support

This commit is contained in:
Laurent Vallar 2013-04-29 11:12:55 +02:00
parent 7f338da734
commit 14afc0b814

View file

@ -73,7 +73,7 @@ send host-name "$hostname";
EOF
echo 'dhcp hostname set'
if [ -z "${LANG}" ]; then
if [ ! -z "${LANG}" ]; then
# set default locale
cat <<EOF > $rootfs/etc/locale.gen
${LANG} UTF-8