custom.d.example old busybox bug workaround

This commit is contained in:
bol-van 2024-10-22 18:10:29 +03:00
parent 8b3cac6a9a
commit 5cd5ab176e
8 changed files with 38 additions and 20 deletions

View File

@ -6,17 +6,20 @@ zapret_custom_daemons()
{ {
# stop logic is managed by procd # stop logic is managed by procd
MODE_OVERRIDE=$OVERRIDE start_daemons_procd local MODE_OVERRIDE=$OVERRIDE
start_daemons_procd
} }
zapret_custom_firewall() zapret_custom_firewall()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_firewall_rules_ipt $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_firewall_rules_ipt $1
} }
zapret_custom_firewall_nft() zapret_custom_firewall_nft()
{ {
# stop logic is not required # stop logic is not required
MODE_OVERRIDE=$OVERRIDE zapret_apply_firewall_rules_nft local MODE_OVERRIDE=$OVERRIDE
zapret_apply_firewall_rules_nft
} }

View File

@ -6,17 +6,20 @@ zapret_custom_daemons()
{ {
# stop logic is managed by procd # stop logic is managed by procd
MODE_OVERRIDE=$OVERRIDE start_daemons_procd local MODE_OVERRIDE=$OVERRIDE
start_daemons_procd
} }
zapret_custom_firewall() zapret_custom_firewall()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_firewall_rules_ipt $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_firewall_rules_ipt $1
} }
zapret_custom_firewall_nft() zapret_custom_firewall_nft()
{ {
# stop logic is not required # stop logic is not required
MODE_OVERRIDE=$OVERRIDE zapret_apply_firewall_rules_nft local MODE_OVERRIDE=$OVERRIDE
zapret_apply_firewall_rules_nft
} }

View File

@ -6,17 +6,20 @@ zapret_custom_daemons()
{ {
# stop logic is managed by procd # stop logic is managed by procd
MODE_OVERRIDE=$OVERRIDE start_daemons_procd local MODE_OVERRIDE=$OVERRIDE
start_daemons_procd
} }
zapret_custom_firewall() zapret_custom_firewall()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_firewall_rules_ipt $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_firewall_rules_ipt $1
} }
zapret_custom_firewall_nft() zapret_custom_firewall_nft()
{ {
# stop logic is not required # stop logic is not required
MODE_OVERRIDE=$OVERRIDE zapret_apply_firewall_rules_nft local MODE_OVERRIDE=$OVERRIDE
zapret_apply_firewall_rules_nft
} }

View File

@ -5,7 +5,7 @@ nfqws_tpws_inheritor()
{ {
# $1 - inherited function # $1 - inherited function
# $2 - 1 - run, 0 - stop # $2 - 1 - run, 0 - stop
local MODE_OVERRIDE
[ "$MODE_HTTP" = "1" ] && { [ "$MODE_HTTP" = "1" ] && {
MODE_OVERRIDE=tpws MODE_HTTPS=0 MODE_QUIC=0 $1 $2 MODE_OVERRIDE=tpws MODE_HTTPS=0 MODE_QUIC=0 $1 $2
} }

View File

@ -6,17 +6,20 @@ zapret_custom_daemons()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_daemons $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_daemons $1
} }
zapret_custom_firewall() zapret_custom_firewall()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_firewall_rules_ipt $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_firewall_rules_ipt $1
} }
zapret_custom_firewall_nft() zapret_custom_firewall_nft()
{ {
# stop logic is not required # stop logic is not required
MODE_OVERRIDE=$OVERRIDE zapret_apply_firewall_rules_nft local MODE_OVERRIDE=$OVERRIDE
zapret_apply_firewall_rules_nft
} }

View File

@ -6,17 +6,20 @@ zapret_custom_daemons()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_daemons $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_daemons $1
} }
zapret_custom_firewall() zapret_custom_firewall()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_firewall_rules_ipt $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_firewall_rules_ipt $1
} }
zapret_custom_firewall_nft() zapret_custom_firewall_nft()
{ {
# stop logic is not required # stop logic is not required
MODE_OVERRIDE=$OVERRIDE zapret_apply_firewall_rules_nft local MODE_OVERRIDE=$OVERRIDE
zapret_apply_firewall_rules_nft
} }

View File

@ -6,17 +6,20 @@ zapret_custom_daemons()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_daemons $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_daemons $1
} }
zapret_custom_firewall() zapret_custom_firewall()
{ {
# $1 - 1 - run, 0 - stop # $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_firewall_rules_ipt $1 local MODE_OVERRIDE=$OVERRIDE
zapret_do_firewall_rules_ipt $1
} }
zapret_custom_firewall_nft() zapret_custom_firewall_nft()
{ {
# stop logic is not required # stop logic is not required
MODE_OVERRIDE=$OVERRIDE zapret_apply_firewall_rules_nft local MODE_OVERRIDE=$OVERRIDE
zapret_apply_firewall_rules_nft
} }

View File

@ -5,7 +5,7 @@ nfqws_tpws_inheritor()
{ {
# $1 - inherited function # $1 - inherited function
# $2 - 1 - run, 0 - stop # $2 - 1 - run, 0 - stop
local MODE_OVERRIDE
[ "$MODE_HTTP" = "1" ] && { [ "$MODE_HTTP" = "1" ] && {
MODE_OVERRIDE=tpws MODE_HTTPS=0 MODE_QUIC=0 $1 $2 MODE_OVERRIDE=tpws MODE_HTTPS=0 MODE_QUIC=0 $1 $2
} }