Changeset 65d016f in freewrt for package/bind/files/named.init
- Timestamp:
- Oct 24, 2006, 1:31:21 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 93d1359
- Parents:
- d82a87c
- File:
-
- 1 edited
-
package/bind/files/named.init (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
package/bind/files/named.init
rd82a87c r65d016f 1 1 #!/bin/sh 2 2 3 if [ -f /etc/bind/named.conf ]; then 4 named -c /etc/bind/named.conf 5 fi 3 . /etc/rc.conf 4 5 case $1 in 6 autostart) 7 test x"${named:-NO}" = x"NO" && exit 0 8 exec $0 start 9 ;; 10 start) 11 if [ -f /etc/bind/named.conf ]; then 12 named -c /etc/bind/named.conf 13 fi 14 ;; 15 stop) 16 killall named 17 ;; 18 restart) 19 $0 stop 20 $0 start 21 ;; 22 *) 23 echo "usage: $0 {start | stop | restart}" 24 exit 1 25 esac 26 exit $?
Note:
See TracChangeset
for help on using the changeset viewer.
