#!/bin/bash
if [ $UID != 0 ]; then
 echo Error: You must be root to run this script!
 exit 1 
fi 
if [ -f /etc/sysconfig/i18n ]; then 
 . /etc/sysconfig/i18n
 [ -n "$LANG" ] || LANG="de_DE@euro"
 [ -e /etc/environment ] || echo LANG=C > /etc/environment 
 if ! [ -e /etc/environment.1st ]; then
  cp /etc/environment /etc/environment.1st
 fi 
 perl -pi -e "s/LANG=.*/LANG=$(echo $LANG|sed 's/@/\\@/')/" /etc/environment
 echo -n updated\ 
fi
echo /etc/environment:
cat /etc/environment 
