[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get ifup/ifdown source code



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...

-- 
sena@decoy.ath.cx
http://decoy.ath.cx/~sena/



Reply to: