replace log_daemon_msg by log_action_msg
This commit is contained in:
parent
f39de51a51
commit
d0cfb0e12d
12
eofirewall
12
eofirewall
|
@ -362,8 +362,8 @@ start()
|
||||||
|
|
||||||
load()
|
load()
|
||||||
{
|
{
|
||||||
log_daemon_msg "Loading old rules from /etc/network/iptables-save"
|
log_action_msg "Loading old rules from /etc/network/iptables-save"
|
||||||
log_daemon_msg "If you want to load new rules please use test and then start"
|
log_action_msg "If you want to load new rules please use test and then start"
|
||||||
if [ -f /etc/network/iptables-save ]; then
|
if [ -f /etc/network/iptables-save ]; then
|
||||||
iptables-restore < /etc/network/iptables-save
|
iptables-restore < /etc/network/iptables-save
|
||||||
else
|
else
|
||||||
|
@ -399,13 +399,13 @@ case "$1" in
|
||||||
test_rules || exit 1
|
test_rules || exit 1
|
||||||
;;
|
;;
|
||||||
start)
|
start)
|
||||||
log_daemon_msg "WARNING: you are loading new rules you have 5 seconds to cancel (CRTL+C)"
|
log_warning_msg "WARNING: you are loading new rules you have 3 seconds to cancel (CRTL+C)"
|
||||||
sleep 5
|
sleep 3
|
||||||
start || exit 1
|
start || exit 1
|
||||||
;;
|
;;
|
||||||
save)
|
save)
|
||||||
log_daemon_msg "You need to make a start before if you want to save new rules"
|
log_action_msg "You need to make a start before if you want to save new rules"
|
||||||
log_daemon_msg "Saving current rules to /etc/network/iptables-save"
|
log_action_msg "Saving current rules to /etc/network/iptables-save"
|
||||||
iptables-save > /etc/network/iptables-save
|
iptables-save > /etc/network/iptables-save
|
||||||
;;
|
;;
|
||||||
flush)
|
flush)
|
||||||
|
|
Reference in New Issue