diff --git a/Shorewall/Perl/prog.footer b/Shorewall/Perl/prog.footer index ad67eb4ab..9ebff0aa5 100644 --- a/Shorewall/Perl/prog.footer +++ b/Shorewall/Perl/prog.footer @@ -85,14 +85,24 @@ g_noroutes=$NOROUTES g_timestamp=$TIMESTAMP g_recovering=$RECOVERING -if [ -f ~/.shorewallrc ]; then +if [ -f ./.shorewallrc ]; then + . ./.shorewallrc || exit 1 +elif [ -f ~/.shorewallrc ]; then . ~/.shorewallrc || exit 1 +elif [ -r /root/.shorewallrc ]; then + . /root/.shorewallrc || exit 1 +elif [ -r /.shorewallrc ]; then + . /root/.shorewallrc || exit 1 +elif - -f ${SHOREAWLLRC_HOME}/.shorewallrc; then + . ${SHOREAWLLRC_HOME}/.shorewallrc || exit 1 else CONFDIR=/etc SHAREDIR=/usr/share VARDIR=/var/lib fi +[ -n "$TMPDIR" ] && export TMPDIR + initialize if [ -n "$STARTUP_LOG" ]; then