Run the 'init' script in the 'run' command.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-07-30 10:25:00 -07:00
parent 0bf80c15d8
commit e49832f4b5
5 changed files with 21 additions and 0 deletions

View File

@ -846,6 +846,11 @@
script passing the supplied <replaceable>parameter</replaceable>s. script passing the supplied <replaceable>parameter</replaceable>s.
Normally, the <replaceable>command</replaceable> will be a function Normally, the <replaceable>command</replaceable> will be a function
declared in <filename>lib.private</filename>.</para> declared in <filename>lib.private</filename>.</para>
<para>Before executing the <replaceable>command</replaceable>, the
script will detect the configuration, setting all SW_* variables and
will run your <filename>init</filename> extension script with
$COMMAND = 'run'.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -376,6 +376,7 @@ case "$COMMAND" in
if [ $# -gt 1 ]; then if [ $# -gt 1 ]; then
shift shift
detect_configuration detect_configuration
run_init_exit
eval $@ eval $@
status=$? status=$?
else else

View File

@ -1434,6 +1434,11 @@
Normally, the <replaceable>command</replaceable> will be a function Normally, the <replaceable>command</replaceable> will be a function
declared in <filename>lib.private</filename>.</para> declared in <filename>lib.private</filename>.</para>
<para>Before executing the <replaceable>command</replaceable>, the
script will detect the configuration, setting all SW_* variables and
will run your <filename>init</filename> extension script with
$COMMAND = 'run'.</para>
<para>If there are files in the CONFIG_PATH that were modified after <para>If there are files in the CONFIG_PATH that were modified after
the current firewall script was generated, the following warning the current firewall script was generated, the following warning
message is issued:</para> message is issued:</para>

View File

@ -844,6 +844,11 @@
script passing the supplied <replaceable>parameter</replaceable>s. script passing the supplied <replaceable>parameter</replaceable>s.
Normally, the <replaceable>command</replaceable> will be a function Normally, the <replaceable>command</replaceable> will be a function
declared in <filename>lib.private</filename>.</para> declared in <filename>lib.private</filename>.</para>
<para>Before executing the command, the script will detect the
configuration, setting all SW_* variables and will run your
<filename>init</filename> extension script with $COMMAND =
'run'.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -1315,6 +1315,11 @@
Normally, the <replaceable>command</replaceable> will be a function Normally, the <replaceable>command</replaceable> will be a function
declared in <filename>lib.private</filename>.</para> declared in <filename>lib.private</filename>.</para>
<para>Before executing the <replaceable>command</replaceable>, the
script will detect the configuration, setting all SW_* variables and
will run your <filename>init</filename> extension script with
$COMMAND = 'run'.</para>
<para>If there are files in the CONFIG_PATH that were modified after <para>If there are files in the CONFIG_PATH that were modified after
the current firewall script was generated, the following warning the current firewall script was generated, the following warning
message is issued before the script's run command is message is issued before the script's run command is