aports/main/dnsmasq/dnsmasq.confd
Dominique Martinet d1dad93197 main/dnsmasq: init: add extra setup command hook
for cases other than bridges dnsmasq might need some
extra configuration step before starting

Tested with conf.d value, used for NetworkManager (if it's slow to start
it won't have time to create required dir for resolv-file, nor setup lo
if bind-interfaces is set):
```
setup_command=extra_setup
extra_setup() {
	ip a add 127.0.0.1/8 dev lo >/dev/null 2>&1
	ip a add ::1/128 dev lo >/dev/null 2>&1
	mkdir -p /run/NetworkManager
}
```
2022-06-26 15:48:32 +02:00

27 lines
824 B
Bash

# Configuration for /etc/init.d/dnsmasq
# Path to the dnsmasq configuration file.
#cfgfile="/etc/dnsmasq.conf"
# Location where to store DHCP leases (sets --dhcp-leasefile).
#leasefile="/var/lib/misc/$RC_SVCNAME.leases"
# Whether to automatically set up a network bridge when the init script is
# a symlink with suffix (e.g. /etc/init.d/dnsmasq.br0).
#setup_bridge=yes
# Additional setup command (runs before starting dnsmasq)
# This can be an external command or a function defined here.
# Service will not start if this command fails.
#setup_command=
# User and group to change to after startup.
#user="dnsmasq"
#group="dnsmasq"
# Additional options to pass to the dnsmasq.
# See the dnsmasq(8) man page for more information.
#command_args=
# Uncomment to run with process supervisor.
# supervisor=supervise-daemon