mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-24 22:32:58 +03:00
init.d: always return 0 from firewall and daemons apply functions
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
@@ -445,4 +445,6 @@ zapret_apply_firewall()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
flow_offloading_exempt
|
flow_offloading_exempt
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
@@ -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()
|
||||||
|
Reference in New Issue
Block a user