Browse Source

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

pull/81/head
bol-van 3 years ago
parent
commit
2bf47f4fff
  1. 3
      init.d/macos/functions
  2. 2
      init.d/openwrt/functions
  3. 4
      init.d/sysv/functions

3
init.d/macos/functions

@ -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()
{ {

2
init.d/openwrt/functions

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

4
init.d/sysv/functions

@ -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()

Loading…
Cancel
Save