On 7/26/2014 2:22 PM, Tom Eastep wrote:
> On 7/26/2014 1:03 PM, Niels Penneman wrote:
>> Thanks for the quick reply. It works flawlessly.
>>
>> Just one last question: why can I be sure though that shorewall runs the
>> 'params' file after I've got an IP through DHCP?
> 
> I suggest using 'wait=10' in the interface OPTIONS. That way, Shorewalll
> startup can delay up to 10 seconds waiting for the interface to get an
> IP address via DHCP.

I just realized that won't work right for you.

I suggest changing your params code after the function declaration

MYSUBNET=

while [ -z "$MYSUBNET" ]; do
    MYSUBNET=$(find_interface_subnet eth0)
    [ -n "$MYSUBNET" ] && break
    sleep 1
done

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to