init: reuse builtin mode in custom scripts

This commit is contained in:
bol-van
2022-02-23 22:39:49 +03:00
parent 09416dee64
commit 3a4bf75ce6
5 changed files with 138 additions and 32 deletions

View File

@@ -91,7 +91,6 @@ _set_route_localnet()
{
# $1 - 1 = enable, 0 = disable
# $2,$3,... - interface names
[ "$DISABLE_IPV4" = "1" ] || {
local enable="$1"
shift