+ if [ "$detach" = 1 ]
+ then
+ $getty $login_arg "$@" &
+ exit
+ else
+ exec $getty $login_arg "$@"
+ fi
+fi
+
+for f in /etc/environment /etc/locale
+do
+ if [ -e "$f" ]
+ then
+ export $(cat "$f")
+ fi
+done
+
+# we force local terminals to use the linux termcap definition
+case "$(tty)" in
+/dev/tty[0-9]*)
+ export TERM=linux
+ ;;
+esac
+
+# we may have been run from udev - ensure we have a sensible PATH
+if [ -z "$PATH" ]