From 0c1529eee2680484c9521e095466afed7519baca Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Fri, 17 Jan 2014 19:54:43 +0100 Subject: [PATCH] [bird] Cleanup unneeded files. --- bird/Makefile | 3 +-- bird/files/bird4.init | 4 +--- bird/files/bird4loop | 24 ------------------------ bird/files/bird6.init | 4 +--- bird/files/bird6loop | 24 ------------------------ 5 files changed, 3 insertions(+), 56 deletions(-) delete mode 100644 bird/files/bird4loop delete mode 100644 bird/files/bird6loop diff --git a/bird/Makefile b/bird/Makefile index cea4690..cb4b2a1 100644 --- a/bird/Makefile +++ b/bird/Makefile @@ -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. # See /LICENSE for more information. @@ -133,7 +133,6 @@ $(STAMP_BUILT): $(STAMP_BUILT)-$(2) define Package/bird$(2)/install $(INSTALL_DIR) $$(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_DATA) ./files/bird$(2).conf $$(1)/etc/ $(INSTALL_DIR) $$(1)/etc/init.d diff --git a/bird/files/bird4.init b/bird/files/bird4.init index 18243bb..4fbd302 100644 --- a/bird/files/bird4.init +++ b/bird/files/bird4.init @@ -1,5 +1,5 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2010-2011 OpenWrt.org +# Copyright (C) 2010-2014 OpenWrt.org START=99 STOP=10 @@ -11,11 +11,9 @@ BIRD="/usr/sbin/bird4 -c /etc/bird4.conf" start() { 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 $BIRD } diff --git a/bird/files/bird4loop b/bird/files/bird4loop deleted file mode 100644 index 8154902..0000000 --- a/bird/files/bird4loop +++ /dev/null @@ -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 diff --git a/bird/files/bird6.init b/bird/files/bird6.init index 67b32f1..9089e00 100644 --- a/bird/files/bird6.init +++ b/bird/files/bird6.init @@ -1,5 +1,5 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2010-2011 OpenWrt.org +# Copyright (C) 2010-2014 OpenWrt.org START=99 STOP=10 @@ -11,11 +11,9 @@ BIRD="/usr/sbin/bird6 -c /etc/bird6.conf" start() { 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 $BIRD } diff --git a/bird/files/bird6loop b/bird/files/bird6loop deleted file mode 100644 index 510add4..0000000 --- a/bird/files/bird6loop +++ /dev/null @@ -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 -- 2.30.2