From 2bf47f4fff26cef4d053f53bb872bf4ff6d31e33 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 31 Oct 2021 16:54:20 +0300 Subject: [PATCH] init.d: always return 0 from firewall and daemons apply functions --- init.d/macos/functions | 3 +++ init.d/openwrt/functions | 2 ++ init.d/sysv/functions | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/init.d/macos/functions b/init.d/macos/functions index 50c3b46..09fb63a 100644 --- a/init.d/macos/functions +++ b/init.d/macos/functions @@ -413,6 +413,7 @@ zapret_do_firewall() return 1 ;; esac + return 0 } zapret_apply_firewall() @@ -471,6 +472,8 @@ zapret_do_daemons() return 1 ;; esac + + return 0 } zapret_run_daemons() { diff --git a/init.d/openwrt/functions b/init.d/openwrt/functions index 5cba504..c6c6fad 100644 --- a/init.d/openwrt/functions +++ b/init.d/openwrt/functions @@ -445,4 +445,6 @@ zapret_apply_firewall() esac flow_offloading_exempt + + return 0 } diff --git a/init.d/sysv/functions b/init.d/sysv/functions index f9af75b..5424977 100644 --- a/init.d/sysv/functions +++ b/init.d/sysv/functions @@ -593,6 +593,8 @@ zapret_do_firewall() ;; esac [ "$1" = 0 ] && unprepare_tpws_fw + + return 0 } zapret_apply_firewall() { @@ -634,6 +636,8 @@ zapret_do_daemons() existf zapret_custom_daemons && zapret_custom_daemons $1 ;; esac + + return 0 } zapret_run_daemons()