mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-09 01:04:06 +01:00
Pretty up the message when detect is specified
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4170 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0c8f630b85
commit
dcefe79ca7
@ -6430,6 +6430,7 @@ __EOF__
|
||||
esac
|
||||
|
||||
if [ "$addrlist" = '$addrlist' ]; then
|
||||
addresses='$(combine_list $addresses)'
|
||||
indent >&3 << __EOF__
|
||||
|
||||
addrlist=
|
||||
@ -8241,6 +8242,25 @@ ensure_and_save_command() {
|
||||
eval \$@ || fatal_error "Command \"\$@\" failed"
|
||||
}
|
||||
|
||||
__EOF__
|
||||
#
|
||||
# The following function(s) can be removed when we require version 30192 (below)
|
||||
#
|
||||
cat >&3 << __EOF__
|
||||
#
|
||||
# Undo the effect of 'separate_list()'
|
||||
#
|
||||
combine_list()
|
||||
{
|
||||
local f o=
|
||||
|
||||
for f in \$* ; do
|
||||
o="\${o:+\$o,}\$f"
|
||||
done
|
||||
|
||||
echo \$o
|
||||
}
|
||||
|
||||
#
|
||||
# Initialize environment
|
||||
#
|
||||
|
@ -26,7 +26,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
|
||||
|
||||
LIBVERSION=30191
|
||||
LIBVERSION=30192
|
||||
|
||||
[ -n "${VARDIR:=/var/lib/shorewall}" ]
|
||||
[ -n "${SHAREDIR:=/usr/share/shorewall}" ]
|
||||
@ -365,6 +365,20 @@ separate_list() {
|
||||
echo "$newlist"
|
||||
}
|
||||
|
||||
#
|
||||
# Undo the effect of 'separate_list()'
|
||||
#
|
||||
combine_list()
|
||||
{
|
||||
local f o=
|
||||
|
||||
for f in $* ; do
|
||||
o="${o:+$o,}$f"
|
||||
done
|
||||
|
||||
echo $o
|
||||
}
|
||||
|
||||
#
|
||||
# Load a Kernel Module
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user