Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openrc script for generate xorg.conf on a livecd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
casualx
n00b
n00b


Joined: 06 Feb 2012
Posts: 58
Location: switzerland

PostPosted: Fri Dec 21, 2012 12:51 pm    Post subject: openrc script for generate xorg.conf on a livecd Reply with quote

hello there
I created a gentoo based live cd from scratch for my study. im happy that all works so great..using gentoo for it and generally is just great for study and learn linux.
the problem I encountered is that udev, xorg and the binary nvidia-drivers not working without generating a xorg.conf.

Code:
X -configure
does do the job and then copy it to /etc/X11/xorg.conf works
so I think about create a init scrip for it

/etc/init.d/autoxorg

Code:

    #!/sbin/runscript
     
    description="generates xorg.conf for the livecd"
     
    depend()
    {
            #need localmount  xdm-setup
            after bootmisc consolefont modules netmount
            after readahead-list ypbind autofs openvpn gpm lircmd
            after quota keymaps
            before alsasound xdm
     
            need localmount xdm-setup
            use consolekit dbus xfs
    }
     
    start()
    {
            einfo "generating xorg.conf"
            X -configure
            mv /root/xorg.conf.new /etc/X11/xorg.conf
     
            eend 0
    }
     
    stop()
    {
            einfo "deleting xorg.conf"
            rm /etc/X11/xorg.conf
     
            eend 0
    }


when I login to console and run it manually by
Code:
/etc/init.d/autoxorg start
it works :)

so i did
Code:
rc-update add autoxorg
and reboot.
so far so good....
I can see the output of
Code:
X -configure
but it fails to create the xorg.conf.new in /root

is there anyway to fix this?

can someone give me some advice how to generate a xorg.conf file at startup?
how does other live dists do?

rhx in advance
Back to top
View user's profile Send private message
casualx
n00b
n00b


Joined: 06 Feb 2012
Posts: 58
Location: switzerland

PostPosted: Fri Jan 11, 2013 8:49 am    Post subject: Reply with quote

:o
the solution is x11-misc/mkxf86config

I forgot to add this may help someone who has some problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum