Gentoo Archives: gentoo-dev

From: Vitaly Kushneriuk <vitaly_kushneriuk@×××××.com>
To: Gentoo-dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] pcmcia-cs Instructions
Date: Tue, 19 Mar 2002 07:10:56
Message-Id: 1016543226.20710.2.camel@uranus.u235.eyep.net
In Reply to: Re: [gentoo-dev] pcmcia-cs Instructions by "Craig M. Reece"
1 On Tue, 2002-03-19 at 14:55, Craig M. Reece wrote:
2 > On Tue, Mar 19, 2002 at 12:25:41AM -0500, Chad M. Huneycutt spoke thusly:
3 > snippage...
4 > >
5 > > To configure PCMCIA network card, you have to edit /etc/pcmcia/network.opts
6 > > to configure your network settings. *Do not* use Gentoo's
7 > > /etc/init.d/net.eth0 startup script to start interfaces that you want
8 > > cardmgr to manage.
9 > >
10 > snippage...
11 >
12 > Does this mean that we should leave net.eth0 out of the rc-update process
13 > and just use pcmcia? Do things that depend on net still work then? Do you
14 > know if this will work with wireless cards as well?
15 That might not be cleanest/best way to do it, but that's what I use:
16 1) in net.eth0 I renamed "start" to "up", and "Stop" to "down" and added
17 new start() that just calls up and stop() that just calls down, and
18 opts="start stop restart up down".
19 2)I replaced content of the /etc/pcmcia/network with the following:
20 -----------------------------------
21 #! /bin/sh
22 #
23
24 action=$1
25 device=$2
26
27 case "${action:?}" in
28 "start" | "resume" )
29 /etc/init.d/net.$2 up
30 ;;
31 "stop")
32 /sbin/ifconfig $2 down
33 ;;
34 esac
35 -----------------------------------
36
37 Home this helps.
38 /Vitaly

Replies

Subject Author
Re: [gentoo-dev] pcmcia-cs Instructions Chad Huneycutt <chadh@×××××××××.edu>