2 # Setup locale from system config,
3 # otherwise it would be inherited from running terminal
5 if [ -f /etc/sysconfig/i18n ]; then
8 [ "$LANG" ] && export LANG || unset LANG
9 [ "$LC_ADDRESS" ] && export LC_ADDRESS || unset LC_ADDRESS
10 [ "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE
11 [ "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE
12 [ "$LC_IDENTIFICATION" ] && export LC_IDENTIFICATION || unset LC_IDENTIFICATION
13 [ "$LC_MEASUREMENT" ] && export LC_MEASUREMENT || unset LC_MEASUREMENT
14 [ "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES
15 [ "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY
16 [ "$LC_NAME" ] && export LC_NAME || unset LC_NAME
17 [ "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC
18 [ "$LC_PAPER" ] && export LC_PAPER || unset LC_PAPER
19 [ "$LC_TELEPHONE" ] && export LC_TELEPHONE || unset LC_TELEPHONE
20 [ "$LC_TIME" ] && export LC_TIME || unset LC_TIME
21 [ "$LC_ALL" ] && export LC_ALL || unset LC_ALL
22 [ "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
23 [ "$LINGUAS" ] && export LINGUAS || unset LINGUAS
26 exec grub-mkconfig -o /boot/grub/grub.cfg "$@"