Correct getparams.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-09-16 09:06:32 -07:00
parent 92ed56bbbc
commit 78f3255bf0

View File

@ -25,12 +25,12 @@
# #
# $1 = Path name of params file # $1 = Path name of params file
# $2 = $CONFIG_PATH # $2 = $CONFIG_PATH
# $3 = Address family (4 o4 6) # $3 = Address family (4 or 6)
# #
if [ "$3" = 6 ]; then if [ "$3" = 6 ]; then
g_program=shorewall6 PRODUCT=shorewall6
else else
g_program=shorewall PRODUCT=shorewall
fi fi
# #
@ -38,11 +38,12 @@ fi
# #
. /usr/share/shorewall/shorewallrc . /usr/share/shorewall/shorewallrc
g_program=$PRODUCT
g_libexec="$LIBEXECDIR" g_libexec="$LIBEXECDIR"
g_sharedir="$SHAREDIR"/shorewall g_sharedir="$SHAREDIR/shorewall"
g_sbindir="$SBINDIR" g_sbindir="$SBINDIR"
g_perllib="$PERLLIBDIR" g_perllib="$PERLLIBDIR"
g_confdir="$CONFDIR"/shorewall g_confdir="$CONFDIR/$PRODUCT"
g_readrc=1 g_readrc=1
. $g_sharedir/lib.cli . $g_sharedir/lib.cli