From 8731e0647a475105acc254bc44aab50e4a828003 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Fri, 17 Jan 2014 20:24:45 +0100 Subject: [PATCH] [bird] Improve init files. --- bird/files/bird4.init | 11 +++++++---- bird/files/bird6.init | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/bird/files/bird4.init b/bird/files/bird4.init index 4fbd302..80bc516 100644 --- a/bird/files/bird4.init +++ b/bird/files/bird4.init @@ -1,22 +1,25 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2010-2014 OpenWrt.org +BIRD="bird4" + START=99 STOP=10 SERVICE_DAEMONIZE=1 SERVICE_WRITE_PID=1 -BIRD="/usr/sbin/bird4 -c /etc/bird4.conf" +BIRD_BIN="/usr/sbin/$BIRD" +BIRD_CONF="/etc/$BIRD.conf" start() { - service_start $BIRD -d + service_start $BIRD_BIN -d -c $BIRD_CONF } stop() { - service_stop $BIRD + service_stop $BIRD_BIN } reload() { - service_reload $BIRD + service_reload $BIRD_BIN } diff --git a/bird/files/bird6.init b/bird/files/bird6.init index 9089e00..2b39e3f 100644 --- a/bird/files/bird6.init +++ b/bird/files/bird6.init @@ -1,22 +1,25 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2010-2014 OpenWrt.org +BIRD="bird6" + START=99 STOP=10 SERVICE_DAEMONIZE=1 SERVICE_WRITE_PID=1 -BIRD="/usr/sbin/bird6 -c /etc/bird6.conf" +BIRD_BIN="/usr/sbin/$BIRD" +BIRD_CONF="/etc/$BIRD.conf" start() { - service_start $BIRD -d + service_start $BIRD_BIN -d -c $BIRD_CONF } stop() { - service_stop $BIRD + service_stop $BIRD_BIN } reload() { - service_reload $BIRD + service_reload $BIRD_BIN } -- 2.30.2