]>
Commit | Line | Data |
---|---|---|
1b4f2493 MT |
1 | #!/bin/bash |
2 | ||
46d8d50f MT |
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 | ||
a48a2034 AF |
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 | |
46d8d50f | 13 | fi |