diff options
Diffstat (limited to 'poky/meta/recipes-connectivity/bind/bind-9.18.2/generate-rndc-key.sh')
-rw-r--r-- | poky/meta/recipes-connectivity/bind/bind-9.18.2/generate-rndc-key.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/poky/meta/recipes-connectivity/bind/bind-9.18.2/generate-rndc-key.sh b/poky/meta/recipes-connectivity/bind/bind-9.18.2/generate-rndc-key.sh new file mode 100644 index 0000000000..633e29c0e6 --- /dev/null +++ b/poky/meta/recipes-connectivity/bind/bind-9.18.2/generate-rndc-key.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ ! -s /etc/bind/rndc.key ]; then + echo -n "Generating /etc/bind/rndc.key:" + /usr/sbin/rndc-confgen -a -b 512 + chown root:bind /etc/bind/rndc.key + chmod 0640 /etc/bind/rndc.key +fi |