mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-22 04:31:23 +01:00
Run the 'init' script in the 'run' command.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
0bf80c15d8
commit
e49832f4b5
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user