From 47a4d231633457d0d53e76ba0581c0964045393c Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 24 Mar 2006 21:27:11 +0000 Subject: [PATCH] Update extension script doc for 3.2 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3730 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- docs/shorewall_extension_scripts.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/shorewall_extension_scripts.xml b/docs/shorewall_extension_scripts.xml index 593a44dc1..95525ce7b 100644 --- a/docs/shorewall_extension_scripts.xml +++ b/docs/shorewall_extension_scripts.xml @@ -247,6 +247,19 @@ you do not have awk, you may not use line continuation in your scripts. Also beware that quoted strings continued from one line to another will have extra whitespace inserted as a result of indentation. + + + The /etc/shorewall/params script is + processed during compilation and + copied into the compiled script as just described. So shell variables + set during compilation may be used in Shorewall configuration files + while those set at run-time are available to your other extension + scripts. Note that if you assign dynamic values to variables, there is + no guarantee that the value calculated at compile time will be the + same as what is calculated at run time. This is particularly true if + you use the shorewall compile command to compile a + program then run that program at a later time. +