diff --git a/Shorewall-core/lib.base b/Shorewall-core/lib.base index 08005f150..d4c06dff2 100644 --- a/Shorewall-core/lib.base +++ b/Shorewall-core/lib.base @@ -20,15 +20,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# This library contains the code common to all Shorewall components. -# -# - It is loaded by /sbin/shorewall. -# - It is released as part of Shorewall[6] Lite where it is used by /sbin/shorewall[6]-lite -# and /usr/share/shorewall[6]-lite/shorecap. +# This library contains the code common to all Shorewall components except the +# generated scripts. # -SHOREWALL_LIBVERSION=40502 -SHOREWALL_CAPVERSION=40507 +SHOREWALL_LIBVERSION=40509 [ -n "${g_program:=shorewall}" ] @@ -49,13 +45,13 @@ case $g_program in shorewall) g_product="Shorewall" g_family=4 - g_tool= + g_tool=iptables g_lite= ;; shorewall6) g_product="Shorewall6" g_family=6 - g_tool= + g_tool=ip6tables g_lite= ;; shorewall-lite) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index d4be83f2b..7baf571ef 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -21,9 +21,14 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # This library contains the command processing code common to /sbin/shorewall[6] and -# /sbin/shorewall[6]-lite. +# /sbin/shorewall[6]-lite. In Shorewall and Shorewall6, the lib.cli-std library is +# loaded after this one and replaces some of the functions declared here. # +SHOREWALL_CAPVERSION=40507 + +[ -n "${g_program:=shorewall}" ] + if [ -z "$g_readrc" ]; then # # This is modified by the installer when ${SHAREDIR} <> /usr/share