include $(TOPDIR)/rules.mk
PKG_NAME:=bird
-PKG_VERSION:=1.3.7
+PKG_VERSION:=1.3.11
PKG_RELEASE:=1
PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird
-PKG_MD5SUM:=c400b008ef834d9e7288dcdbe41b7c15
+PKG_MD5SUM:=8ad2eb997fb8251bc5b24cf32619571b
PKG_BUILD_DEPENDS:=libncurses libreadline
include $(INCLUDE_DIR)/package.mk
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2011 OpenWrt.org
-START=50
+START=99
+STOP=10
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
+BIRD="/usr/sbin/bird4 -c /etc/bird4.conf"
+
start() {
- service_start /usr/sbin/bird4 -d
+ service_start $BIRD -d
# ( SERVICE_MATCH_NAME=1 service_start /usr/sbin/bird4loop )
}
stop() {
# ( SERVICE_MATCH_NAME=1 service_stop /usr/sbin/bird4loop )
- service_stop /usr/sbin/bird4
+ service_stop $BIRD
}
reload() {
- service_reload /usr/sbin/bird4
+ service_reload $BIRD
}
#!/bin/sh
-BIRD=/usr/sbin/bird4
+BIRD="/usr/sbin/bird4 -c /etc/bird4.conf"
$BIRD -p || return 1
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2011 OpenWrt.org
-START=50
+START=99
+STOP=10
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
+BIRD="/usr/sbin/bird6 -c /etc/bird6.conf"
+
start() {
- service_start /usr/sbin/bird6 -d
+ service_start $BIRD -d
# ( SERVICE_MATCH_NAME=1 service_start /usr/sbin/bird6loop )
}
stop() {
# ( SERVICE_MATCH_NAME=1 service_stop /usr/sbin/bird6loop )
- service_stop /usr/sbin/bird6
+ service_stop $BIRD
}
reload() {
- service_reload /usr/sbin/bird6
+ service_reload $BIRD
}
#!/bin/sh
-BIRD=/usr/sbin/bird6
+BIRD="/usr/sbin/bird6 -c /etc/bird6.conf"
$BIRD -p || return 1
+++ /dev/null
-diff --git a/sysdep/config.h b/sysdep/config.h
-index 03399bd..bc5eb77 100644
---- a/sysdep/config.h
-+++ b/sysdep/config.h
-@@ -46,11 +46,11 @@ typedef u16 word;
- # endif
- #else
- # ifdef DEBUGGING
--# define PATH_CONFIG "bird.conf"
--# define PATH_CONTROL_SOCKET "bird.ctl"
-+# define PATH_CONFIG "bird4.conf"
-+# define PATH_CONTROL_SOCKET "bird4.ctl"
- # else
--# define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
--# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
-+# define PATH_CONFIG PATH_CONFIG_DIR "/bird4.conf"
-+# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird4.ctl"
- # endif
- #endif
-