This adds a separate package for the 2.0 branch of Bird, allowing it to co-exist with the bird1 package. The two packages conflict with each other, so they can't be installed at the same time; but in the build system they coexist just fine. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
20 lines
459 B
Bash
20 lines
459 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2010-2017 OpenWrt.org
|
|
|
|
USE_PROCD=1
|
|
START=70
|
|
|
|
BIRD_BIN="/usr/sbin/bird"
|
|
BIRD_CONF="/etc/bird.conf"
|
|
BIRD_PID_FILE="/var/run/bird.pid"
|
|
|
|
start_service() {
|
|
mkdir -p /var/run
|
|
procd_open_instance
|
|
procd_set_param command $BIRD_BIN -c $BIRD_CONF -P $BIRD_PID_FILE
|
|
procd_set_param file "$BIRD_CONF"
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|