zapret/init.d/openwrt/custom.default

34 lines
774 B
Plaintext
Raw Normal View History

2021-03-04 11:30:38 +00:00
# this script contain your special code to launch daemons and configure firewall
# use helpers from "functions" file and "zapret" init script
# in case of upgrade keep this file only, do not modify others
zapret_custom_daemons()
{
2022-02-15 14:15:36 +00:00
# stop logic is managed by procd
2021-03-04 11:30:38 +00:00
# PLACEHOLDER
echo !!! NEED ATTENTION !!!
echo Start daemon\(s\)
echo Study how other sections work
run_daemon 1 /bin/sleep 20
}
zapret_custom_firewall()
{
2022-02-15 14:15:36 +00:00
# $1 - 1 - run, 0 - stop
2021-03-04 11:30:38 +00:00
# PLACEHOLDER
echo !!! NEED ATTENTION !!!
echo Configure iptables for required actions
echo Study how other sections work
}
2022-02-15 14:15:36 +00:00
zapret_custom_firewall_nft()
{
# stop logic is not required
# PLACEHOLDER
echo !!! NEED ATTENTION !!!
echo Configure nftables for required actions
echo Study how other sections work
}