From 38a3477bec6f2ca2c4c0e780d1ddf68dbfa17602 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 8 Jul 2007 17:10:09 +0000 Subject: [PATCH] Add undocumented /etc/shorewall/vardir file git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6807 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-shell/compiler | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Shorewall-shell/compiler b/Shorewall-shell/compiler index 9b8f6dd47..3400bd847 100755 --- a/Shorewall-shell/compiler +++ b/Shorewall-shell/compiler @@ -40,7 +40,6 @@ BASE_VERSION_PRINTABLE=4.0.0 CONFIG_VERSION=40000 CONFIG_VERSION_PRINTABLE=4.0.0 - # # Fatal error -- stops the compiler after issuing the error message # @@ -4949,7 +4948,10 @@ __EOF__ cat >&3 << __EOF__ SHAREDIR=/usr/share/shorewall-lite CONFDIR=/etc/shorewall-lite -VARDIR=/var/lib/shorewall-lite + +[ -f \${CONFDIR}/vardir ] && . \${CONFDIR}/vardir + +[ -n "\${VARDIR:=/var/lib/shorewall-lite}" ] __EOF__ @@ -4966,7 +4968,10 @@ __EOF__ cat >&3 << __EOF__ SHAREDIR=/usr/share/shorewall CONFDIR=/etc/shorewall -VARDIR=/var/lib/shorewall + +[ -f \${CONFDIR}/vardir ] && . \${CONFDIR}/vardir + +[ -n "\${VARDIR:=/var/lib/shorewall}" ] . \${SHAREDIR}/lib.base __EOF__