mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 12:09:14 +01:00
Make AUTOMAKE apply to 'restart'
Signed-off-by: Tom Eastep <teastep@shorewall.net> git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9769 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
238ff4550f
commit
48155417b1
@ -390,6 +390,7 @@ compiler() {
|
||||
start_command() {
|
||||
local finished
|
||||
finished=0
|
||||
local restorefile
|
||||
|
||||
do_it() {
|
||||
local rc
|
||||
@ -489,6 +490,7 @@ start_command() {
|
||||
|
||||
if [ -n "${FAST}${AUTOMAKE}" ]; then
|
||||
if qt mywhich make; then
|
||||
restorefile=$RESTOREFILE
|
||||
#
|
||||
# RESTOREFILE is exported by get_config()
|
||||
#
|
||||
@ -503,6 +505,8 @@ start_command() {
|
||||
FAST=
|
||||
AUTOMAKE=
|
||||
fi
|
||||
|
||||
RESTOREFILE=$restorefile
|
||||
else
|
||||
FAST=
|
||||
AUTOMAKE=
|
||||
@ -693,6 +697,7 @@ restart_command() {
|
||||
finished=0
|
||||
local rc
|
||||
rc=0
|
||||
local restorefile
|
||||
|
||||
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||
option=$1
|
||||
@ -764,6 +769,18 @@ restart_command() {
|
||||
export NOROUTES
|
||||
export PURGE
|
||||
|
||||
if [ -z "$FAST" -a -n "$AUTOMAKE" ]; then
|
||||
if qt mywhich make; then
|
||||
#
|
||||
# RESTOREFILE is exported by get_config()
|
||||
#
|
||||
restorefile=$RESTOREFILE
|
||||
RESTOREFILE=firewall
|
||||
make -qf ${CONFDIR}/Makefile && FAST=Yes
|
||||
RESTOREFILE=$restorefile
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$FAST" ]; then
|
||||
progress_message3 "Compiling..."
|
||||
|
||||
|
@ -208,13 +208,15 @@
|
||||
role="bold">Yes</emphasis>|<emphasis role="bold">No</emphasis>]</term>
|
||||
|
||||
<listitem>
|
||||
<para>If set, the behavior of the 'start' command is change; if no
|
||||
files in /etc/shorewall have been changed since the last successful
|
||||
<command>start</command> or <command>restart</command> command, then
|
||||
the compilation step is skipped and the compiled script that
|
||||
executed the last <command>start</command> or
|
||||
<command>restart</command> command is used. The default is
|
||||
AUTOMAKE=No.</para>
|
||||
<para>If set, the behavior of the <command>start</command> and
|
||||
<command>restart</command> commands is change; if no files in
|
||||
<filename><filename
|
||||
class="directory">/etc/shorewall</filename></filename> have been
|
||||
changed since the last successful <command>start</command> or
|
||||
<command>restart</command> command, then the compilation step is
|
||||
skipped and the compiled script that executed the last
|
||||
<command>start</command> or <command>restart</command> command is
|
||||
used. The default is AUTOMAKE=No.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user