"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "share/arno-iptables-firewall/plugins/90traffic-accounting.plugin" 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.

90traffic-accounting.plugin  (aif-2.1.0):90traffic-accounting.plugin  (aif-2.1.1)
skipping to change at line 133 skipping to change at line 133
# Call parse script # Call parse script
"$PLUGIN_BIN_PATH/traffic-accounting-show" "$PLUGIN_BIN_PATH/traffic-accounting-show"
return 0 return 0
} }
# Check sanity of eg. environment # Check sanity of eg. environment
plugin_sanity_check() plugin_sanity_check()
{ {
if [ -z "$JOB_HELPER_SCRIPT" -o ! -e "$JOB_HELPER_SCRIPT" ]; then if [ ! -f "$JOB_HELPER_SCRIPT" ]; then
printf "\033[40m\033[1;31m${INDENT}ERROR: The job helper script($JOB_HELPER_ SCRIPT) can not be found!\033[0m\n" >&2 printf "\033[40m\033[1;31m${INDENT}ERROR: The job helper script($JOB_HELPER_ SCRIPT) can not be found!\033[0m\n" >&2
return 1 return 1
fi fi
return 0 return 0
} }
############ ############
# Mainline # # Mainline #
############ ############
skipping to change at line 155 skipping to change at line 155
# Check where to find the config file # Check where to find the config file
CONF_FILE="" CONF_FILE=""
if [ -n "$PLUGIN_CONF_PATH" ]; then if [ -n "$PLUGIN_CONF_PATH" ]; then
CONF_FILE="$PLUGIN_CONF_PATH/$PLUGIN_CONF_FILE" CONF_FILE="$PLUGIN_CONF_PATH/$PLUGIN_CONF_FILE"
fi fi
# Preinit to success: # Preinit to success:
PLUGIN_RET_VAL=0 PLUGIN_RET_VAL=0
# Check if the config file exists # Check if the config file exists
if [ ! -e "$CONF_FILE" ]; then if [ ! -f "$CONF_FILE" ]; then
printf "NOTE: Config file \"$CONF_FILE\" not found!\n Plugin \"$PLUGIN_ NAME v$PLUGIN_VERSION\" ignored!\n" >&2 printf "NOTE: Config file \"$CONF_FILE\" not found!\n Plugin \"$PLUGIN_ NAME v$PLUGIN_VERSION\" ignored!\n" >&2
else else
# Source the plugin config file # Source the plugin config file
. "$CONF_FILE" . "$CONF_FILE"
if [ "$ENABLED" = "1" -a "$PLUGIN_CMD" != "stop-restart" ] || if [ "$ENABLED" = "1" -a "$PLUGIN_CMD" != "stop-restart" ] ||
[ "$ENABLED" = "0" -a "$PLUGIN_CMD" = "stop-restart" ] || [ "$ENABLED" = "0" -a "$PLUGIN_CMD" = "stop-restart" ] ||
[ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "stop" ] || [ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "stop" ] ||
[ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "status" ]; then [ -n "$PLUGIN_LOAD_FILE" -a "$PLUGIN_CMD" = "status" ]; then
# Show who we are: # Show who we are:
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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