case "$MODE" in
    after-install)
        ### Set Runlevel 5 and turn off the mingetty's
        # Fedora 8 and previous, and RHEL5 
        [ -e $ROOT/etc/inittab ] && sed -i 's/^id:3/id:5/; /^[1-6].*/d;' $ROOT/etc/inittab
        # Fedora 9+ with Upstart
        if [ -e $ROOT/etc/event.d/tty1 ]; then
            for NUM in 1 2 3 4 5 6; do
                echo > $ROOT/etc/event.d/tty$NUM
            done
        fi        
        ;;
esac
