mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
unbound: Start unbound when invoked by DHCP scripts
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update DNS forwarders for unbound
|
||||
exec /etc/init.d/unbound update-forwarders
|
||||
# If network has not fully been brought up here, we start unbound
|
||||
# so that all following scripts can rely on DNS resolution
|
||||
|
||||
# Update DNS forwarders if unbound is running
|
||||
if pgrep -q unbound; then
|
||||
exec /etc/init.d/unbound update-forwarders
|
||||
fi
|
||||
|
||||
# Start unbound if it is not running, yet
|
||||
exec /etc/init.d/unbound start
|
||||
|
||||
Reference in New Issue
Block a user