Correct spacings in firewall init script.
This commit is contained in:
parent
b22ddfd55e
commit
1a3b51d975
1 changed files with 8 additions and 8 deletions
|
|
@ -26,26 +26,26 @@ firewall_states_restore() {
|
||||||
|
|
||||||
# Restore the saved (or default) v4 firewall state.
|
# Restore the saved (or default) v4 firewall state.
|
||||||
iptables-restore "$STATE_V4" 2>/dev/null || {
|
iptables-restore "$STATE_V4" 2>/dev/null || {
|
||||||
printf "%s: %s " "${0##*/}" "failed to restore saved" >&2
|
printf "%s: %s" "${0##*/}" "failed to restore saved" >&2
|
||||||
if iptables-restore "$DEFAULT_V4" 2>/dev/null; then
|
if iptables-restore "$DEFAULT_V4" 2>/dev/null; then
|
||||||
printf "%s " ", only default" >&2
|
printf "%s" ", only default" >&2
|
||||||
else
|
else
|
||||||
printf "%s " "and default" >&2
|
printf " %s" "and default" >&2
|
||||||
ERR=1
|
ERR=1
|
||||||
fi
|
fi
|
||||||
printf "%s\\n" "v4 firewall state" >&2
|
printf " %s\\n" "v4 firewall state" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# Restore the saved (or default) v6 firewall state.
|
# Restore the saved (or default) v6 firewall state.
|
||||||
ip6tables-restore "$STATE_V6" 2>/dev/null || {
|
ip6tables-restore "$STATE_V6" 2>/dev/null || {
|
||||||
printf "%s: %s " "${0##*/}" "failed to restore saved" >&2
|
printf "%s: %s" "${0##*/}" "failed to restore saved" >&2
|
||||||
if ip6tables-restore "$DEFAULT_V6" 2>/dev/null; then
|
if ip6tables-restore "$DEFAULT_V6" 2>/dev/null; then
|
||||||
printf "%s " ", only default" >&2
|
printf "%s" ", only default" >&2
|
||||||
else
|
else
|
||||||
printf "%s " "and default" >&2
|
printf " %s" "and default" >&2
|
||||||
ERR=1
|
ERR=1
|
||||||
fi
|
fi
|
||||||
printf "%s\\n" "v6 firewall state" >&2
|
printf " %s\\n" "v6 firewall state" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
return "$ERR"
|
return "$ERR"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue