forked from extern/shorewall_code
Shorewall[6]/Makefile: remove extra restore, shorewall does that automatically
Signed-off-by: Tuomo Soini <tis@foobar.fi>
This commit is contained in:
parent
660ae09f4f
commit
daa016d2a3
@ -2,7 +2,6 @@
|
|||||||
# Shorewall -- /etc/shorewall/Makefile
|
# Shorewall -- /etc/shorewall/Makefile
|
||||||
#
|
#
|
||||||
# Reload Shorewall if config files are updated.
|
# Reload Shorewall if config files are updated.
|
||||||
# If reloading fails, restore old settings.
|
|
||||||
|
|
||||||
SWBIN ?= /sbin/shorewall -q
|
SWBIN ?= /sbin/shorewall -q
|
||||||
CONFDIR ?= /etc/shorewall
|
CONFDIR ?= /etc/shorewall
|
||||||
@ -16,7 +15,6 @@ $(SWSTATE): $(CONFDIR)/*
|
|||||||
if [ $$? -eq 0 ]; then \
|
if [ $$? -eq 0 ]; then \
|
||||||
$(SWBIN) save >/dev/null; \
|
$(SWBIN) save >/dev/null; \
|
||||||
else \
|
else \
|
||||||
$(SWBIN) restore >/dev/null 2>&1; \
|
|
||||||
echo "$${RESULT}" >&2; \
|
echo "$${RESULT}" >&2; \
|
||||||
false; \
|
false; \
|
||||||
fi
|
fi
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# Shorewall6 -- /etc/shorewall6/Makefile
|
# Shorewall6 -- /etc/shorewall6/Makefile
|
||||||
#
|
#
|
||||||
# Reload Shorewall6 if config files are updated.
|
# Reload Shorewall6 if config files are updated.
|
||||||
# If reloading fails, restore old settings.
|
|
||||||
|
|
||||||
SWBIN ?= /sbin/shorewall6 -q
|
SWBIN ?= /sbin/shorewall6 -q
|
||||||
CONFDIR ?= /etc/shorewall6
|
CONFDIR ?= /etc/shorewall6
|
||||||
@ -16,7 +15,6 @@ $(SWSTATE): $(CONFDIR)/*
|
|||||||
if [ $$? -eq 0 ]; then \
|
if [ $$? -eq 0 ]; then \
|
||||||
$(SWBIN) save >/dev/null; \
|
$(SWBIN) save >/dev/null; \
|
||||||
else \
|
else \
|
||||||
$(SWBIN) restore >/dev/null 2>&1; \
|
|
||||||
echo "$${RESULT}" >&2; \
|
echo "$${RESULT}" >&2; \
|
||||||
false; \
|
false; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user