"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "share/arno-iptables-firewall/aif-job-execute" between
aif-2.1.0.tar.gz and aif-2.1.1.tar.gz

About: Arno’s iptables firewall is a stateful firewall script for both single and multi-homed machines with DSL/ADSL support.

aif-job-execute  (aif-2.1.0):aif-job-execute  (aif-2.1.1)
#!/bin/sh #!/bin/sh
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# -= Arno's Iptables Firewall(AIF) =- # -= Arno's Iptables Firewall(AIF) =-
# Single- & multi-homed firewall script with DSL/ADSL support # Single- & multi-homed firewall script with DSL/ADSL support
# #
# ~ In memory of my dear father ~ # ~ In memory of my dear father ~
# #
# (C) Copyright 2001-2018 by Arno van Amersfoort & Lonnie Abelbeck # (C) Copyright 2001-2020 by Arno van Amersfoort & Lonnie Abelbeck
# Homepage : https://rocky.eld.leidenuniv.nl/ # Homepage : https://rocky.eld.leidenuniv.nl/
# Email : a r n o v a AT r o c k y DOT e l d DOT l e i d e n u n i v DOT n l # Email : a r n o v a AT r o c k y DOT e l d DOT l e i d e n u n i v DOT n l
# (note: you must remove all spaces and substitute the @ and the . # (note: you must remove all spaces and substitute the @ and the .
# at the proper locations!) # at the proper locations!)
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License # modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation. # version 2 as published by the Free Software Foundation.
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 90 skipping to change at line 90
shift # Next argument shift # Next argument
done done
} }
############ ############
# Mainline # # Mainline #
############ ############
process_commandline "$@" process_commandline "$@"
if [ -z "$CONF_FILE" -o ! -e "$CONF_FILE" ]; then if [ ! -f "$CONF_FILE" ]; then
echo "ERROR: Could not read configuration file ($CONF_FILE)!" >&2 echo "ERROR: Could not read configuration file ($CONF_FILE)!" >&2
echo "" >&2 echo "" >&2
exit 2 exit 2
fi fi
# Source config file # Source config file
. "$CONF_FILE" . "$CONF_FILE"
# Check if the environment file exists and if so, load it # Check if the environment file exists and if so, load it
######################################################### #########################################################
if [ -n "$ENV_FILE" ]; then ENV_FILE="${0%/*}/environment"
. "$ENV_FILE"
else if [ ! -f "$ENV_FILE" ]; then
if [ -f /usr/local/share/arno-iptables-firewall/environment ]; then echo "** ERROR: Unable to locate environment file \"$ENV_FILE\"!" >&2
. /usr/local/share/arno-iptables-firewall/environment exit 2
else
if [ -f /usr/share/arno-iptables-firewall/environment ]; then
. /usr/share/arno-iptables-firewall/environment
else
echo "** ERROR: The environment file (ENV_FILE) has not been specified" >&
2
echo "** in the configuration file. Try upgrading your config-file!
" >&2
exit 2
fi
fi
fi fi
# Source environment file
. "$ENV_FILE"
# Only proceed if environment ok # Only proceed if environment ok
if ! sanity_check; then if ! sanity_check; then
exit 2 exit 2
fi fi
# Reset to 0, just in case # Reset to 0, just in case
PLUGIN_RET_VAL=0 PLUGIN_RET_VAL=0
LOCK_NAME="$(basename "$JOB_HELPER_PATH")" LOCK_NAME="$(basename "$JOB_HELPER_PATH")"
 End of changes. 4 change blocks. 
19 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)