ifup / udev problem

Denis Vlasenko vda.linux at googlemail.com
Wed May 2 21:09:12 UTC 2007


Hi Ignacio,

Yes, a very late reply... better late than never. :(

On Thursday 29 March 2007 11:40, Ignacio García Pérez wrote:
> This used to work in my system but no longer does:
> 
> I set up several SLIP interfaces using "slattach". As soon as the slX 
> interfaces show up, the udevd daemon calls, via a rules file, /sbin/ifup 
> for each interface.
> 
> Then ifup fails miserably to configure the interface. The problem seems 
> to be that ifup *does not use absolute paths* for the external programs 
> it calls (run-parts, ip, etc), thus it relies on the PATH being properly 
> set.
> 
> And udevd does not pass a PATH environment variable.
> 
> My question is: what is the *proper* way to fix this?
> 
> a) Manage to get udevd to pass a valid path to ifup.
> 
> b) Fix ifup so it uses absolute paths to the external programs it uses.
> 
> c) Fix ifup so it uses a meaningful default PATH 
> (/sbin:/bin:/usr/sbin:/usr/bin) when none is available.

Preferably (a). (c) as last resort. (b) is bad - it's not ifup's business
to direct where user has to keep his binaries.
--
vda



More information about the busybox mailing list