#!/bin/sh

PREREQ=""
DESCRIPTION="Configuring language from /proc/cmdline..."

prereqs()
{
    echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
       prereqs
       exit 0
       ;;
esac

. /scripts/casper-functions

log_begin_msg "$DESCRIPTION"

#FILL IN THE GAPS

rc=0
#cat /proc/cmdline | grep -q "LANG=qcv_ES.UTF-8" || rc=1

#if [ $rc -eq 0 ] ; then
#  cat > "/etc/environment" << EOF
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
#LANGUAGE="es_ES:en"
#LANG="_ES.UTF-8"
#LC_NUMERIC="es_ES.UTF-8"
#LC_TIME="es_ES.UTF-8"
#LC_MONETARY="es_ES.UTF-8"
#LC_PAPER="es_ES.UTF-8"
#LC_IDENTIFICATION="es_ES.UTF-8"
#LC_NAME="es_ES.UTF-8"
#LC_ADDRESS="es_ES.UTF-8"
#LC_TELEPHONE="es_ES.UTF-8"
#LC_MEASUREMENT="es_ES.UTF-8"
#EOF
#else
  echo "Configuring language from /proc/cmdline " >> "/tmp/casper-cmdline.log"
#fi

log_end_msg

