#!/bin/sh
# Wrapper script to set up login environment:
# Load up all the junk in /etc/profile first, and then
# pass control to entrance proper.

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

(cd /etc/pam.d ; for i in gdm kdm wdm xdm ; do test -s $i && cp -a $i entrance && break ; done)

exec /usr/bin/entrance "$@"

#fallback
exec entrance "$@"

