From 87d94ae004135fa9cc4bbc93a36ebad4770c096c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 21 Oct 2015 17:32:57 -0700 Subject: [PATCH 1/2] Correct typo in Dynamic article Signed-off-by: Tom Eastep --- docs/Dynamic.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/Dynamic.xml b/docs/Dynamic.xml index 807dd2029..aa1cdc074 100644 --- a/docs/Dynamic.xml +++ b/docs/Dynamic.xml @@ -49,8 +49,7 @@ support is based on ipset. Most current distributions have ipset, but you may need to install the xtables-addons. - + url="http://xtables-addons.sourceforge.net/">xtables-addons.
@@ -290,7 +289,7 @@ rsyncok:
- Dynamic Zones -- Shorewall 5.4.8 and Earlier. + Dynamic Zones -- Shorewall 4.5.8 and Earlier. The method described in this section is still supported in the later releases. From 1e2cfcd9a3ee1ad9a554b234456d75fcb8639deb Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 21 Oct 2015 17:41:01 -0700 Subject: [PATCH 2/2] Deal with missing 'hostname' utility Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 62685ab39..1c8f12f18 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -3590,7 +3590,13 @@ get_config() { VERBOSITY=2 fi - g_hostname=$(hostname 2> /dev/null) + if qt mywhich hostname; then + g_hostname=$(hostname 2> /dev/null) + elif qt mywhich uname; then + g_hostname=$(uname -n 2> /dev/null) + else + g_hostname=localhost + fi if [ -n "$IPSET" ]; then case "$IPSET" in