[bird] Cleanup unneeded files.
This commit is contained in:
parent
0ebe3eb68b
commit
0c1529eee2
5 changed files with 3 additions and 56 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009-2012 OpenWrt.org
|
# Copyright (C) 2009-2014 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -133,7 +133,6 @@ $(STAMP_BUILT): $(STAMP_BUILT)-$(2)
|
||||||
define Package/bird$(2)/install
|
define Package/bird$(2)/install
|
||||||
$(INSTALL_DIR) $$(1)/usr/sbin
|
$(INSTALL_DIR) $$(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $$(PKG_BUILD_DIR)/bird$(2) $$(1)/usr/sbin/
|
$(INSTALL_BIN) $$(PKG_BUILD_DIR)/bird$(2) $$(1)/usr/sbin/
|
||||||
$(INSTALL_BIN) ./files/bird$(2)loop $$(1)/usr/sbin/
|
|
||||||
$(INSTALL_DIR) $$(1)/etc
|
$(INSTALL_DIR) $$(1)/etc
|
||||||
$(INSTALL_DATA) ./files/bird$(2).conf $$(1)/etc/
|
$(INSTALL_DATA) ./files/bird$(2).conf $$(1)/etc/
|
||||||
$(INSTALL_DIR) $$(1)/etc/init.d
|
$(INSTALL_DIR) $$(1)/etc/init.d
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2010-2011 OpenWrt.org
|
# Copyright (C) 2010-2014 OpenWrt.org
|
||||||
|
|
||||||
START=99
|
START=99
|
||||||
STOP=10
|
STOP=10
|
||||||
|
@ -11,11 +11,9 @@ BIRD="/usr/sbin/bird4 -c /etc/bird4.conf"
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
service_start $BIRD -d
|
service_start $BIRD -d
|
||||||
# ( SERVICE_MATCH_NAME=1 service_start /usr/sbin/bird4loop )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
# ( SERVICE_MATCH_NAME=1 service_stop /usr/sbin/bird4loop )
|
|
||||||
service_stop $BIRD
|
service_stop $BIRD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
BIRD="/usr/sbin/bird4 -c /etc/bird4.conf"
|
|
||||||
|
|
||||||
$BIRD -p || return 1
|
|
||||||
|
|
||||||
. /lib/functions.sh
|
|
||||||
. /lib/functions/service.sh
|
|
||||||
|
|
||||||
SERVICE_DAEMONIZE=1
|
|
||||||
SERVICE_WRITE_PID=1
|
|
||||||
|
|
||||||
sig_handler() {
|
|
||||||
running=0
|
|
||||||
service_stop $BIRD
|
|
||||||
}
|
|
||||||
|
|
||||||
running=1
|
|
||||||
trap sig_handler INT
|
|
||||||
trap sig_handler TERM
|
|
||||||
while [ $running -gt 0 ]; do
|
|
||||||
service_check $BIRD || service_start $BIRD -d "$@"
|
|
||||||
sleep 3
|
|
||||||
done
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2010-2011 OpenWrt.org
|
# Copyright (C) 2010-2014 OpenWrt.org
|
||||||
|
|
||||||
START=99
|
START=99
|
||||||
STOP=10
|
STOP=10
|
||||||
|
@ -11,11 +11,9 @@ BIRD="/usr/sbin/bird6 -c /etc/bird6.conf"
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
service_start $BIRD -d
|
service_start $BIRD -d
|
||||||
# ( SERVICE_MATCH_NAME=1 service_start /usr/sbin/bird6loop )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
# ( SERVICE_MATCH_NAME=1 service_stop /usr/sbin/bird6loop )
|
|
||||||
service_stop $BIRD
|
service_stop $BIRD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
BIRD="/usr/sbin/bird6 -c /etc/bird6.conf"
|
|
||||||
|
|
||||||
$BIRD -p || return 1
|
|
||||||
|
|
||||||
. /lib/functions.sh
|
|
||||||
. /lib/functions/service.sh
|
|
||||||
|
|
||||||
SERVICE_DAEMONIZE=1
|
|
||||||
SERVICE_WRITE_PID=1
|
|
||||||
|
|
||||||
sig_handler() {
|
|
||||||
running=0
|
|
||||||
service_stop $BIRD
|
|
||||||
}
|
|
||||||
|
|
||||||
running=1
|
|
||||||
trap sig_handler INT
|
|
||||||
trap sig_handler TERM
|
|
||||||
while [ $running -gt 0 ]; do
|
|
||||||
service_check $BIRD || service_start $BIRD -d "$@"
|
|
||||||
sleep 3
|
|
||||||
done
|
|
Loading…
Reference in a new issue