1 |
Chad Huneycutt wrote: |
2 |
> Vitaly Kushneriuk wrote: |
3 |
> |
4 |
>> On Tue, 2002-03-19 at 14:55, Craig M. Reece wrote: |
5 |
>> |
6 |
>>> Does this mean that we should leave net.eth0 out of the rc-update |
7 |
>>> process |
8 |
>>> and just use pcmcia? Do things that depend on net still work then? Do |
9 |
>>> you |
10 |
>>> know if this will work with wireless cards as well? |
11 |
>> |
12 |
>> |
13 |
>> That might not be cleanest/best way to do it, but that's what I use: |
14 |
>> 1) in net.eth0 I renamed "start" to "up", and "Stop" to "down" and added |
15 |
>> new start() that just calls up and stop() that just calls down, and |
16 |
>> opts="start stop restart up down". |
17 |
>> 2)I replaced content of the /etc/pcmcia/network with the following: |
18 |
>> ----------------------------------- |
19 |
>> #! /bin/sh |
20 |
>> # |
21 |
>> |
22 |
>> action=$1 |
23 |
>> device=$2 |
24 |
>> |
25 |
>> case "${action:?}" in |
26 |
>> "start" | "resume" ) |
27 |
>> /etc/init.d/net.$2 up |
28 |
>> ;; |
29 |
>> "stop") |
30 |
>> /sbin/ifconfig $2 down |
31 |
>> ;; |
32 |
>> esac |
33 |
>> ----------------------------------- |
34 |
> |
35 |
> |
36 |
> |
37 |
> Say... That's pretty good. Until I can get the powers that be to |
38 |
> provide --quiet init scripts, I think I will use that. |
39 |
|
40 |
Well, it wasn't really necessary to do the up and down stuff. I just |
41 |
directly call /etc/init.d/net.eth? start. I thought I tried that and it |
42 |
failed, but I must have had a typo somewhere. I am providing this new |
43 |
/etc/pcmcia/network in pcmcia-cs-3.1.33-r2 |
44 |
|
45 |
|
46 |
-- |
47 |
Chad Huneycutt try { Windows } |
48 |
Ph.D. Student catch ( Exception BSOD ) |
49 |
Georgia Tech College of Computing { linux }; |
50 |
http://www.cc.gatech.edu/~chadh |