"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure.sh" 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.

configure.sh  (aif-2.1.0):configure.sh  (aif-2.1.1)
skipping to change at line 51 skipping to change at line 51
FIREWALL_CONF=${1:-/etc/arno-iptables-firewall/firewall.conf} FIREWALL_CONF=${1:-/etc/arno-iptables-firewall/firewall.conf}
sanity_check() sanity_check()
{ {
# root check # root check
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
printf "\033[40m\033[1;31mERROR: Root check FAILED (you MUST be root to use this script)! Quitting...\033[0m\n\n" >&2 printf "\033[40m\033[1;31mERROR: Root check FAILED (you MUST be root to use this script)! Quitting...\033[0m\n\n" >&2
exit 1 exit 1
fi fi
if [ ! -e "/etc/arno-iptables-firewall/firewall.conf" ]; then if [ ! -f "/etc/arno-iptables-firewall/firewall.conf" ]; then
printf "\033[40m\033[1;31mERROR: It looks like arno-iptables-firewall is not installed on this system (yet)! Quitting...\033[0m\n\n" >&2 printf "\033[40m\033[1;31mERROR: It looks like arno-iptables-firewall is not installed on this system (yet)! Quitting...\033[0m\n\n" >&2
exit 1 exit 1
fi fi
check_command_error sed check_command_error sed
check_command_error chmod check_command_error chmod
check_command_error chown check_command_error chown
check_command_error cp check_command_error cp
check_command_error ln check_command_error ln
check_command_error rm check_command_error rm
skipping to change at line 252 skipping to change at line 252
change_conf_var "$FIREWALL_CONF" "NAT" "0" change_conf_var "$FIREWALL_CONF" "NAT" "0"
fi fi
fi fi
break break
fi fi
done done
fi fi
# Make sure init script is executable and root owned # Make sure init script is executable and root owned
if [ -e /etc/init.d/arno-iptables-firewall ]; then if [ -f /etc/init.d/arno-iptables-firewall ]; then
chown 0:0 /etc/init.d/arno-iptables-firewall chown 0:0 /etc/init.d/arno-iptables-firewall
chmod 755 /etc/init.d/arno-iptables-firewall chmod 755 /etc/init.d/arno-iptables-firewall
fi fi
# Set the correct permissions on the config file # Set the correct permissions on the config file
chown 0:0 "$FIREWALL_CONF" chown 0:0 "$FIREWALL_CONF"
chmod 600 "$FIREWALL_CONF" chmod 600 "$FIREWALL_CONF"
} }
# main line: # main line:
skipping to change at line 331 skipping to change at line 331
else else
echo "WARNING: Unable to detect /rc2.d or /rcS.d directories. Skipping run level symlinks" >&2 echo "WARNING: Unable to detect /rc2.d or /rcS.d directories. Skipping run level symlinks" >&2
fi fi
fi fi
if [ $DONE -eq 0 ]; then if [ $DONE -eq 0 ]; then
echo "ERROR: Unable to setup automatic start at boot. Please investigate" >& 2 echo "ERROR: Unable to setup automatic start at boot. Please investigate" >& 2
fi fi
fi fi
if [ -e /etc/init.d/arno-iptables-firewall ]; then
if get_user_yn "Do you want the init script to be verbose (print out what it's
doing)" "n"; then
change_conf_var /etc/init.d/arno-iptables-firewall "VERBOSE" "1"
else
change_conf_var /etc/init.d/arno-iptables-firewall "VERBOSE" "0"
fi
fi
if diff ./etc/arno-iptables-firewall/firewall.conf "$FIREWALL_CONF" >/dev/null; then if diff ./etc/arno-iptables-firewall/firewall.conf "$FIREWALL_CONF" >/dev/null; then
if get_user_yn "Your firewall.conf is not configured yet.\nDo you want me to h elp you setup a basic configuration" "y"; then if get_user_yn "Your firewall.conf is not configured yet.\nDo you want me to h elp you setup a basic configuration" "y"; then
setup_conf_file setup_conf_file
else else
echo "* Skipped" echo "* Skipped"
fi fi
else else
if get_user_yn "Your firewall.conf looks already customized.\nModify configura tion" "n"; then if get_user_yn "Your firewall.conf looks already customized.\nModify configura tion" "n"; then
setup_conf_file setup_conf_file
else else
 End of changes. 3 change blocks. 
11 lines changed or deleted 2 lines changed or added

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