View previous topic :: View next topic |
Author |
Message |
casualx n00b
Joined: 06 Feb 2012 Posts: 58 Location: switzerland
|
Posted: Fri Dec 21, 2012 12:51 pm Post subject: openrc script for generate xorg.conf on a livecd |
|
|
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.
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 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 |
|
|
casualx n00b
Joined: 06 Feb 2012 Posts: 58 Location: switzerland
|
Posted: Fri Jan 11, 2013 8:49 am Post subject: |
|
|
the solution is x11-misc/mkxf86config
I forgot to add this may help someone who has some problem |
|
Back to top |
|
|
|