#!/bin/sh -e

[ -n "$GLOBAL_HOMEROS" ] || exit 0
[ -n "$GLOBAL_HOMEROS_FRIEND" ] && exit 0

cat <<EOF >>/etc/X11/gdm/custom.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=altlinux
EOF
