Greg Playle wrote the following at 17:31 03.08.2003:
Erich: .... The output was something like this:
Variables eth /proc/net/dev 60 NICS = 1 Count = 0 Count updated 1 Devs = 1 expr [ 1 -eq 60 -o 1 -eq 1 ]
OK, the loop breaks here because we expect exactly one eth device and we found one. Now the question is why.
We get the variable $devs here
devs=`grep ${WHAT} ${WHERE} | wc -l`
and $NICS is
NICS=`grep ${WHAT} /etc/shorewall/interfaces | grep -v ^# | wc -l`
This looks to me like a correct behaviour.
The NICS are defined in the shorewall interfaces file, we are looking for a line with 'eth' which is not a comment, I guess that is right in your case, now the question stands why we are finding an eth interface in /proc/net/dev which would not respect configuration.
This is where you can continue digging should you be so inclined.
Try the following
grep eth /etc/shorewall/interfaces | grep -v ^#
this will give you the line in the shorewall interfaces file whic assert looks for. The next you could check is:
grep eth /proc/net/dev
This is the condition we check against. It looks like your set finds an eth before it is ready...:-(
Thanks
Erich
THINK Püntenstrasse 39 8143 Stallikon mailto:[EMAIL PROTECTED] PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html