summaryrefslogtreecommitdiff
path: root/pkgsrc/bgpd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgsrc/bgpd.sh')
-rw-r--r--pkgsrc/bgpd.sh44
1 files changed, 0 insertions, 44 deletions
diff --git a/pkgsrc/bgpd.sh b/pkgsrc/bgpd.sh
deleted file mode 100644
index b150e9f0..00000000
--- a/pkgsrc/bgpd.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-#
-# bgpd is part of the quagga routing beast
-#
-# PROVIDE: bgpd
-# REQUIRE: zebra
-##
-
-PATH=/sbin:/bin:/usr/sbin:/usr/bin:@PREFIX@/sbin:@PREFIX@/bin
-export PATH
-
-if [ -f /etc/rc.subr ]
-then
- . /etc/rc.subr
-fi
-
-name="bgpd"
-rcvar=$name
-required_files="@PKG_SYSCONFDIR@/${name}.conf"
-command="@PREFIX@/sbin/${name}"
-command_args="-d"
-
-start_precmd="zebra_precmd"
-socket_dir=/var/run/zebra
-pidfile="${socket_dir}/${name}.pid"
-
-zebra_precmd()
-{
- rc_flags="$(
- set -- $rc_flags
- while [ $# -ne 0 ]; do
- if [ X"$1" = X-P -o X"$1" = X-A ]; then
- break
- fi
- shift
- done
- if [ $# -eq 0 ]; then
- echo "-P 0"
- fi
- ) $rc_flags"
-}
-
-load_rc_config $name
-run_rc_command "$1"