[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: ifup / udev problem
From: Ignacio_García_Pérez <iggarpe () terra ! es>
Date: 2007-03-29 9:40:08
Message-ID: 460B8978.2060607 () terra ! es
[Download RAW message or body]
Hi,
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.
Nacho.
P.S: I don't have changed the udev rules, so I assume it used to work
because either ifup used absolute paths, or used a meaningful default
path, or -the least likely- a previous version of udevd passed a PATH to
the programs it executes.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic