summaryrefslogtreecommitdiff
path: root/package/bind/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/bind/files')
-rw-r--r--package/bind/files/bind-server.postinst2
-rw-r--r--package/bind/files/bind/named.conf (renamed from package/bind/files/bind/named.conf.example)0
-rw-r--r--package/bind/files/named.init6
3 files changed, 6 insertions, 2 deletions
diff --git a/package/bind/files/bind-server.postinst b/package/bind/files/bind-server.postinst
index bca89fd22..18ddbfc13 100644
--- a/package/bind/files/bind-server.postinst
+++ b/package/bind/files/bind-server.postinst
@@ -1,3 +1,3 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
-add_rcconf named named NO
+add_rcconf named NO
diff --git a/package/bind/files/bind/named.conf.example b/package/bind/files/bind/named.conf
index 162454955..162454955 100644
--- a/package/bind/files/bind/named.conf.example
+++ b/package/bind/files/bind/named.conf
diff --git a/package/bind/files/named.init b/package/bind/files/named.init
index c3ad09d85..ede96cabe 100644
--- a/package/bind/files/named.init
+++ b/package/bind/files/named.init
@@ -7,11 +7,15 @@ case $1 in
autostop) ;;
autostart)
test x"${named:-NO}" = x"NO" && exit 0
+ test x"$named" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
+ if [ ! -f /etc/rndc.key ]; then
+ rndc-confgen -a 2>/dev/null
+ fi
if [ -f /etc/bind/named.conf ]; then
- /usr/sbin/named -c /etc/bind/named.conf
+ /usr/sbin/named -c /etc/bind/named.conf &
fi
;;
stop)