Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting gentoo with quickswitch profiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
alex
n00b
n00b


Joined: 20 Jun 2002
Posts: 36
Location: Netherlands

PostPosted: Mon Oct 13, 2003 8:53 pm    Post subject: Booting gentoo with quickswitch profiles Reply with quote

a lot of artikels in the gentoo forums about booting with different network profiles suggest to use quickswitch.
By emerging quickswitch and adapting the switchto.conf file to my needs, I now can change my network profile from the command line using the switchto command.
However I would like to choose the network profile at boot time. The readme that comes with quickswitch refers to changing something in the /etc/rc.d/rc.local file and in the LILO configuration.
My gentoo installation doesn't have a /etc/rc.d/rc.local file and I'm using grub instead of LILO.
So my question to the forum is:
Howto integrate quickswitch in the gentoo boot proces?
Back to top
View user's profile Send private message
lars3loff
n00b
n00b


Joined: 24 Oct 2002
Posts: 46
Location: Potsdam, Germany

PostPosted: Mon Dec 29, 2003 8:48 pm    Post subject: Reply with quote

My grub conf looks like this:
Code:

title Gentoo Linux - Potsdam11
        root (hd0,4)
        kernel (hd0,4)/boot/bzImage SWITCHTO=Potsdam11
 
title Gentoo Linux - Potsdam
        root (hd0,4)
        kernel (hd0,4)/boot/bzImage SWITCHTO=Potsdam


That's all. I have also written an additional rc-script to load quickswitch instead of net.eth0. It is under /etc/init.d/net.quickswitch
Code:

depend() {
        need localmount
}
 
start() {
        ebegin "Bringing quickswitch up"
        #/usr/bin/ndiswrapper > /dev/null
        /usr/bin/switchto -s > /dev/null
        eend 0
}
 
stop() {
        ebegin "Bringing quickswitch down"
        #rmmod ndiswrapper
        eend 0
}

You won't need the ndiswrapper lines because they are just interesting for my wlan card.
_________________
Lars Trieloff
Back to top
View user's profile Send private message
rafiosso
n00b
n00b


Joined: 02 Sep 2003
Posts: 3
Location: Gdansk, Poland

PostPosted: Thu Mar 25, 2004 6:59 pm    Post subject: Reply with quote

Thanks, that's what i was lookin' for!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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