2017-06-12 23:48:27 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-09-30 14:43:18 +02:00
|
|
|
echo "Setting console permissions..."
|
|
|
|
chown root:tty /dev/console
|
|
|
|
chmod g+rw /dev/console
|
2017-06-12 23:48:27 +02:00
|
|
|
echo "Receiving anchor key..."
|
|
|
|
/usr/sbin/unbound-anchor -a /etc/unbound/trusted-key.key
|
|
|
|
echo "Receiving root hints..."
|
|
|
|
curl -#o /etc/unbound/root.hints https://www.internic.net/domain/named.cache
|
2018-09-30 14:43:18 +02:00
|
|
|
/usr/sbin/unbound-control-setup
|
2017-06-12 23:48:27 +02:00
|
|
|
exec "$@"
|