On 8/1/2014 6:51 AM, Tom Eastep wrote: > 4.6.3 Beta 1 is now available. > > Problems Corrected: > > 1) This beta has defect repair through 4.6.2.3. > > New Feature: > > 1) A new 'run' command has been implemented. This command allows you > to run an arbitrary command in the context of the generated > script. > > shorewall[6][-lite] run <command> [ <parameter> ... ] > > Normally, <command> will be a function declared in lib.private.
Contrary to the documentation in shorewall(8), the SW_* variables are not currently being set. Patch attached. -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 \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm
index 98b45bb..f0b96ab 100644
--- a/Shorewall/Perl/Shorewall/Compiler.pm
+++ b/Shorewall/Perl/Shorewall/Compiler.pm
@@ -285,9 +285,9 @@ sub generate_script_2() {
push_indent;
if ( $global_variables & NOT_RESTORE ) {
- emit( 'start|restart|refresh|disable|enable)' );
+ emit( 'start|restart|refresh|disable|enable|run)' );
} else {
- emit( 'start|restart|refresh|disable|enable|restore)' );
+ emit( 'start|restart|refresh|disable|enable|restore|run)' );
}
push_indent;
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-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
