Changeset 65d016f in freewrt for package/bind


Ignore:
Timestamp:
Oct 24, 2006, 1:31:21 AM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
93d1359
Parents:
d82a87c
Message:

fix half of the init scripts not conforming to
our standard. thx very much ulmen!

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1000 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/bind
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • package/bind/Makefile

    rd82a87c r65d016f  
    99PKG_NAME:=              bind
    1010PKG_VERSION:=           9.3.1
    11 PKG_RELEASE:=           1
     11PKG_RELEASE:=           2
    1212PKG_MD5SUM:=            9ff3204eea27184ea0722f37e43fc95d
    1313PKG_INIT:=              60
  • package/bind/files/named.init

    rd82a87c r65d016f  
    11#!/bin/sh
    22
    3 if [ -f /etc/bind/named.conf ]; then
    4         named -c /etc/bind/named.conf
    5 fi
     3. /etc/rc.conf
     4
     5case $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
     25esac
     26exit $?
Note: See TracChangeset for help on using the changeset viewer.