port lots of init scripts over to rc.common (more to come)
[packages.git] / net / bind / files / named.init
index 97860b3..6cbd96a 100755 (executable)
@@ -1,5 +1,12 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
 
-if [ -f /etc/bind/named.conf ]; then
-       named -c /etc/bind/named.conf
-fi
+start() {
+       if [ -f /etc/bind/named.conf ]; then
+               named -c /etc/bind/named.conf
+       fi
+}
+
+stop() {
+       killall named
+}