summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-06-01 14:26:48 +0000
committerPaul Jakma <paul.jakma@sun.com>2008-06-01 14:26:48 +0000
commit0e7c124f870d4c95ff3edbde1a766717c696da7c (patch)
tree910fb2262fd88656b1d6147b7059d839f4ddf32f /tools
parentfa93b16208c2e7ffb09bd5bf72fb1a70a1ad8f73 (diff)
[tools] multiple-bgpd.sh: make paths more configurable
Diffstat (limited to 'tools')
-rw-r--r--tools/multiple-bgpd.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/multiple-bgpd.sh b/tools/multiple-bgpd.sh
index 40977544..a91e496b 100644
--- a/tools/multiple-bgpd.sh
+++ b/tools/multiple-bgpd.sh
@@ -7,9 +7,11 @@ VTYBASE=2610
ASBASE=64560
BGPD=/path/to/bgpd
PREFIX=192.168.145
+CONFBASE=/tmp
+PIDBASE=/var/run/quagga
for H in `seq 1 ${NUM}` ; do
- CONF=/etc/quagga/bgpd${H}.conf
+ CONF="${CONFBASE}"/bgpd${H}.conf
ADDR=${PREFIX}.${H}
if [ ! -e "$CONF" ] ; then
@@ -47,9 +49,9 @@ for H in `seq 1 ${NUM}` ; do
#
# Solaris: ifconfig vni${H} plumb ${ADDR}/32 up
# Linux: ip address add ${ADDR}/32 dev lo 2> /dev/null
- ${BGPD} -i /var/run/quagga/bgpd${H}.pid \
+ ${BGPD} -i "${PIDBASE}"/bgpd${H}.pid \
-l ${ADDR} \
- -f /etc/quagga/bgpd${H}.conf \
+ -f "${CONF}" \
-P $((${VTYBASE}+${H})) \
-d
done