slitaz-boot-scripts rev 201
Fix: lang= gen locale only if needed
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 21 01:13:46 2010 +0100 (2010-03-21) |
parents | fdaa026fbc5d |
children | 81e817cdbb07 |
files | etc/init.d/bootopts.sh etc/init.d/network.sh etc/init.d/wpa_action.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Sat Mar 20 11:11:32 2010 +0100 1.2 +++ b/etc/init.d/bootopts.sh Sun Mar 21 01:13:46 2010 +0100 1.3 @@ -74,8 +74,9 @@ 1.4 echo -n "Setting system locale to: $LANG... " 1.5 echo "LANG=$LANG" > /etc/locale.conf 1.6 echo "LC_ALL=$LANG" >> /etc/locale.conf 1.7 - status 1.8 - localedef -i $LANG -c -f UTF-8 /usr/lib/locale/$LANG &; 1.9 + [ ! -d /usr/lib/locale/$LANG ] && localedef \ 1.10 + -i $LANG -c -f UTF-8 /usr/lib/locale/$LANG & 1.11 + status ;; 1.12 kmap=*) 1.13 # Check for a specified keymap (kmap=*). 1.14 KEYMAP=${opt#kmap=}