#!/bin/sh
#setup runlevel 
[ -z "$runlevel" ] && runlevel=5 
subst "s,^\(id:\)\(.*\)\(:initdefault.*\),\\1$runlevel\\3," /etc/inittab 
 
#setup autologin 
cat <<E_O_F >> /etc/sysconfig/autologin 
USER=altlinux 
AUTOLOGIN=yes 
E_O_F 
