Marco d'Itri wrote: > On Dec 19, Joey Hess <[EMAIL PROTECTED]> wrote: > > > The whole check for lo being up based on /etc/network/run/ifstate seems > > less than ideal; it could instead check whether the actual interface is > > up, that seems less likely to have false positivies. > Looks like a good idea. I would also be more comfortable in making a > background process wait for it without a timeout. > > Can you suggest a way to check for this without depending on grepping > the output of ifconfig or iproute?
Well, if moreutils were on the base system, you could use ifdata -pf lo | grep -q "Off Up" Sorry, couldn't resist.. :-) With our base system, fiddling with /sys may be the best way. Maybe check for /sys/class/net/lo/operstate != down? -- see shy jo
signature.asc
Description: Digital signature

