#!/bin/sh
#
# A script so that
#    1) we read the standard system env vars
#    2) syadmins/integrators can add their own private options etc...

test -f /etc/profile && . /etc/profile

# Make sure LANG is set
#
if [ -z "$LANG" ]
then
  if [ -f /etc/sysconfig/language ]
  then
    LANG=`. /etc/sysconfig/language; echo $RC_LANG`
  else
    LANG=C
  fi
  export LANG
fi

# OpenBSD boot-up: give console time to settle so that we can grab the kbd
if [ "`uname`" = OpenBSD ]
then
  (sleep 5 && exec /usr/local/sbin/gdm-binary "$@")&
else
  exec /usr/local/sbin/gdm-binary "$@"
fi

