#!/bin/sh

PREREQ=""
DESCRIPTION="Configuring desktop-preseed..."
PRESEED_DIR="/root/etc/"
PRESEED_FILE="/root/etc/lliurex.seed"
prereqs()
{
    echo "$PREREQ"
}

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

. /scripts/casper-functions

log_begin_msg "$DESCRIPTION"

# If directory is not present, create it!
[ -d "$PRESEED_DIR" ] || mkdir -p "$PRESEED_DIR" 

# Create file wit cateof technology
cat > $PRESEED_FILE <<EOF
#LliureX only locale sets language, country and locale.
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/layoutcode string es
d-i netcfg/get_hostname string pandora

EOF

log_end_msg
