]> git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/networking/red.up/05-update-dns-forwarders
Various rootfile fixes
[ipfire-2.x.git] / src / initscripts / networking / red.up / 05-update-dns-forwarders
1 #!/bin/bash
2
3 # If network has not fully been brought up here, we start unbound
4 # so that all following scripts can rely on DNS resolution
5
6 pidof unbound > /dev/null
7 if [ "${?}" = "0" ]; then
8 # unbound is run so update the forwarders
9 /etc/init.d/unbound update-forwarders
10 else
11 # Start unbound if it is not running, yet
12 /etc/init.d/unbound start
13 fi