diff options
author | Ting Liu <ting.liu@freescale.com> | 2015-01-22 10:39:59 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-11 17:40:08 +0000 |
commit | d3953fcb409e75ad3d9069ef1d533f7e68a9baf8 (patch) | |
tree | 30c19b7b22f28ea916c01dd701a5344b541b9fff | |
parent | 6f79439ce478ce362fc1b5d60675710114060235 (diff) | |
download | poky-d3953fcb409e75ad3d9069ef1d533f7e68a9baf8.tar.gz |
bind: fix typo chown->chmod
(From OE-Core rev: a6ee74222b43d0bb7fe9ef0072ede78f82a5e446)
(From OE-Core rev: 43cf6cd3b282226ce379a03a0d1fd5670c303648)
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/bind/bind/conf.patch | 2 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/generate-rndc-key.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/bind/bind/conf.patch b/meta/recipes-connectivity/bind/bind/conf.patch index 2785c6a22f..432c8741cf 100644 --- a/meta/recipes-connectivity/bind/bind/conf.patch +++ b/meta/recipes-connectivity/bind/bind/conf.patch | |||
@@ -261,7 +261,7 @@ diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d | |||
261 | + modprobe capability >/dev/null 2>&1 || true | 261 | + modprobe capability >/dev/null 2>&1 || true |
262 | + if [ ! -f /etc/bind/rndc.key ]; then | 262 | + if [ ! -f /etc/bind/rndc.key ]; then |
263 | + /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | 263 | + /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom |
264 | + chown 0640 /etc/bind/rndc.key | 264 | + chmod 0640 /etc/bind/rndc.key |
265 | + fi | 265 | + fi |
266 | + if [ -f /var/run/named/named.pid ]; then | 266 | + if [ -f /var/run/named/named.pid ]; then |
267 | + ps `cat /var/run/named/named.pid` > /dev/null && exit 1 | 267 | + ps `cat /var/run/named/named.pid` > /dev/null && exit 1 |
diff --git a/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh index c2e88bf127..db201270fa 100644 --- a/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh +++ b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh | |||
@@ -3,5 +3,5 @@ | |||
3 | if [ ! -s /etc/bind/rndc.key ]; then | 3 | if [ ! -s /etc/bind/rndc.key ]; then |
4 | echo -n "Generating /etc/bind/rndc.key:" | 4 | echo -n "Generating /etc/bind/rndc.key:" |
5 | /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | 5 | /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom |
6 | chown 0640 /etc/bind/rndc.key | 6 | chmod 0640 /etc/bind/rndc.key |
7 | fi | 7 | fi |