mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +03:00
init.d: fix return status in some sysv functions
Otherwise exit status is false, therefore OpenRC decides that service startup failed.
This commit is contained in:
parent
fe7cfad797
commit
91ea1b9394
@ -168,7 +168,7 @@ dnat6_target()
|
||||
}
|
||||
eval $DVAR="$DNAT6_TARGET"
|
||||
}
|
||||
[ -n "$2" ] && eval $2="$DNAT6_TARGET"
|
||||
[ -z "$2" ] || eval $2="$DNAT6_TARGET"
|
||||
}
|
||||
|
||||
prepare_tpws_fw4()
|
||||
@ -592,7 +592,7 @@ zapret_do_firewall()
|
||||
existf zapret_custom_firewall && zapret_custom_firewall $1
|
||||
;;
|
||||
esac
|
||||
[ "$1" = 0 ] && unprepare_tpws_fw
|
||||
[ "$1" != 0 ] || unprepare_tpws_fw
|
||||
}
|
||||
zapret_apply_firewall()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user