see #2116 "When CARP interface IP address cant be assigned error or warning should appear". Script should abort if command trying to add an ip address to an interface fails

This commit is contained in:
Vadim Kurland
2011-02-19 15:33:30 -08:00
parent 3a871d5f06
commit aea53d35eb
206 changed files with 884 additions and 625 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
#
# Firewall Builder fwb_ipt v4.2.0.3482
#
# Generated Fri Feb 18 18:29:05 2011 PST by vadim
# Generated Sat Feb 19 15:23:44 2011 PST by vadim
#
# files: * firewall2-6.fw /etc/fw/firewall2-6.fw
#
@@ -165,7 +165,7 @@ missing_address() {
test "$cmd" = "del" && {
echo "# Removing ip address: $interface $addr"
$FWBDEBUG $IP addr $cmd $addr dev $interface
$FWBDEBUG $IP addr $cmd $addr dev $interface || exit 1
}
$FWBDEBUG $IP link set $interface up
@@ -559,7 +559,7 @@ test -z "$cmd" && {
case "$cmd" in
start)
log "Activating firewall script generated Fri Feb 18 18:29:05 2011 by vadim"
log "Activating firewall script generated Sat Feb 19 15:23:44 2011 by vadim"
check_tools
check_run_time_address_table_files