2009-10-08 21:41:22 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
PREREQ=""
|
2009-10-12 18:46:43 +02:00
|
|
|
DESCRIPTION="Setting up system locale"
|
2009-10-08 21:41:22 +02:00
|
|
|
|
|
|
|
. /scripts/casper-functions
|
|
|
|
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
# get pre-requisites
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
log_begin_msg "$DESCRIPTION"
|
|
|
|
|
|
|
|
# commandline
|
|
|
|
for x in $(cat /proc/cmdline); do
|
|
|
|
case $x in
|
|
|
|
locale=*)
|
|
|
|
locale=${x#locale=}
|
|
|
|
set_locale="true"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "${set_locale}" ]; then
|
2009-10-12 18:46:43 +02:00
|
|
|
echo "system_locale=\"$locale\"" > ${rootmnt}/etc/conf.d/locale
|
2009-10-08 21:41:22 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
log_end_msg
|