Re: How to get ifup/ifdown source code

2000-11-06 Thread Mario Olimpio de Menezes
On Sat, 4 Nov 2000, Patrick Dahiroc wrote:

 i'm curious to know how ifup/ifdown does it's magic.  how do
 i get the source code for these using apt-get

put a line like this in your /etc/apt/sources.list

deb-src http://your_favourite_mirror/debian potato main contrib non-free


and them cd to your preferred scratch directory (/tmp|/usr/src/) and do:

# apt-get update
# apt-get source netbase

ifup/ifdown are in netbase package

[]s
Mario O.de MenezesMany are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails
http://curiango.ipen.br/~mario Prov. 19.21
   http://www.revistalinux.com.br



How to get ifup/ifdown source code

2000-11-04 Thread Patrick Dahiroc
i'm curious to know how ifup/ifdown does it's magic.  how do
i get the source code for these using apt-get

-- 
As a general rule, if you have trouble 
 with the binary system, then probably it 
 is because you do not really understand 
 the decimal system ...
R.W. Hamming



Re: How to get ifup/ifdown source code

2000-11-04 Thread sena
I heard that Patrick Dahiroc wrote this on 04/11/00:

 i'm curious to know how ifup/ifdown does it's magic.  how do
 i get the source code for these using apt-get
 
Well, first you need a deb-src line in your /etc/apt/sources.list:
deb-src http://http.us.debian.org/debian stable main contrib non-free

Next, just use apt-get to fetch netbase' source:
apt-get source netbase

You'll end up with three files in the current directory (a .diff.gz, a .dsc
and a .orig.tar.gz) plus a directory (in this case called netbase-3.18)...

Then, cd to netbase-3.18/ifupdown and there you have it! ifup and ifdown are
the same program. When called as ifup, it gets an interface up. When called
as ifdown, it brings down the interface..

Regards, sena...

-- 
[EMAIL PROTECTED]
http://decoy.ath.cx/~sena/