init.d: always return 0 from firewall and daemons apply functions

This commit is contained in:
bol-van 2021-10-31 16:54:20 +03:00
parent fe7cfad797
commit 2bf47f4fff
3 changed files with 9 additions and 0 deletions

View File

@ -413,6 +413,7 @@ zapret_do_firewall()
return 1 return 1
;; ;;
esac esac
return 0 return 0
} }
zapret_apply_firewall() zapret_apply_firewall()
@ -471,6 +472,8 @@ zapret_do_daemons()
return 1 return 1
;; ;;
esac esac
return 0
} }
zapret_run_daemons() zapret_run_daemons()
{ {

View File

@ -445,4 +445,6 @@ zapret_apply_firewall()
esac esac
flow_offloading_exempt flow_offloading_exempt
return 0
} }

View File

@ -593,6 +593,8 @@ zapret_do_firewall()
;; ;;
esac esac
[ "$1" = 0 ] && unprepare_tpws_fw [ "$1" = 0 ] && unprepare_tpws_fw
return 0
} }
zapret_apply_firewall() zapret_apply_firewall()
{ {
@ -634,6 +636,8 @@ zapret_do_daemons()
existf zapret_custom_daemons && zapret_custom_daemons $1 existf zapret_custom_daemons && zapret_custom_daemons $1
;; ;;
esac esac
return 0
} }
zapret_run_daemons() zapret_run_daemons()