mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-27 13:11:57 +02:00
Remove dead code in lib.cli-lite
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
eaad3d836c
commit
40f3c48a2c
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Shorewall 4.4 -- /usr/share/shorewall/lib.clix.
|
# Shorewall 4.4 -- /usr/share/shorewall[6]/lib.cli-lite.
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
||||||
#
|
#
|
||||||
@ -20,7 +20,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
#
|
#
|
||||||
# This library contains the command processing code common to /sbin/shorewall and /sbin/shorewall6.
|
# This library contains the command processing code common to /sbin/shorewall-lite and /sbin/shorewall6-lite.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -213,10 +213,6 @@ start_command() {
|
|||||||
finished=1
|
finished=1
|
||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
f*)
|
|
||||||
g_fast=Yes
|
|
||||||
option=${option#f}
|
|
||||||
;;
|
|
||||||
p*)
|
p*)
|
||||||
[ -n "$(which conntrack)" ] || fatal_error "The '-p' option requires the conntrack utility which does not appear to be installed on this system"
|
[ -n "$(which conntrack)" ] || fatal_error "The '-p' option requires the conntrack utility which does not appear to be installed on this system"
|
||||||
g_purge=Yes
|
g_purge=Yes
|
||||||
@ -243,30 +239,7 @@ start_command() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "$g_fast" ]; then
|
do_it
|
||||||
if qt mywhich make; then
|
|
||||||
export RESTOREFILE
|
|
||||||
make -qf ${CONFDIR}/Makefile || g_fast=
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$g_fast" ]; then
|
|
||||||
|
|
||||||
g_restorepath=${VARDIR}/$RESTOREFILE
|
|
||||||
|
|
||||||
if [ -x $g_restorepath ]; then
|
|
||||||
echo Restoring $g_product...
|
|
||||||
run_it $g_restorepath restore
|
|
||||||
date > ${VARDIR}/restarted
|
|
||||||
progress_message3 $g_product restored from $g_restorepath
|
|
||||||
else
|
|
||||||
do_it
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
do_it
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
do_it
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user