summaryrefslogtreecommitdiff
path: root/net/zebra/files/zebractl.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/zebra/files/zebractl.in')
-rw-r--r--net/zebra/files/zebractl.in55
1 files changed, 0 insertions, 55 deletions
diff --git a/net/zebra/files/zebractl.in b/net/zebra/files/zebractl.in
deleted file mode 100644
index af1733ffe41c..000000000000
--- a/net/zebra/files/zebractl.in
+++ /dev/null
@@ -1,55 +0,0 @@
-#! /bin/sh
-#
-# zebra start/stop script by "Andreas Klemm <andreas@FreeBSD.ORG>"
-#
-
-usage()
-{
- echo "$0: usage: $0 [ start | stop | restart ]"
- exit 1
-}
-
-if [ $# -lt 1 ]; then
- echo "$0: error: one argument needed"; usage
-elif [ $# -gt 1 ]; then
- echo "$0: error: only one argument needed"; usage
-fi
-
-case $1 in
- start)
- if [ ! -f %%ETCDIR%%/zebra.conf ]; then
- echo "error: zebra.conf config file is mandatory"
- exit 1
- fi
- [ -f %%ETCDIR%%/zebra.conf ] \
- && %%PREFIX%%/sbin/zebra %%ZEBRAARGS%% && echo -n ' zebra'
- [ -f %%ETCDIR%%/ripd.conf ] \
- && %%PREFIX%%/sbin/ripd %%RIPDARGS%% && echo -n ' ripd'
- [ -f %%ETCDIR%%/ripngd.conf ] \
- && %%PREFIX%%/sbin/ripngd %%RIPNGDARGS%% && echo -n ' ripngd'
- [ -f %%ETCDIR%%/ospfd.conf ] \
- && %%PREFIX%%/sbin/ospfd %%OSPFDARGS%% && echo -n ' ospfd'
- [ -f %%ETCDIR%%/ospf6d.conf ] \
- && %%PREFIX%%/sbin/ospf6d %%OSPF6DARGS%% && echo -n ' ospf6d'
- [ -f %%ETCDIR%%/bgpd.conf ] \
- && %%PREFIX%%/sbin/bgpd %%BGPDARGS%% && echo -n ' bgpd'
- ;;
-
- stop)
- [ -f %%ETCDIR%%/ripd.conf ] && killall ripd
- [ -f %%ETCDIR%%/ripngd.conf ] && killall ripngd
- [ -f %%ETCDIR%%/ospfd.conf ] && killall ospfd
- [ -f %%ETCDIR%%/ospf6d.conf ] && killall ospf6d
- [ -f %%ETCDIR%%/bgpd.conf ] && killall bgpd
- [ -f %%ETCDIR%%/zebra.conf ] && killall zebra
- ;;
- restart)
- $0 stop
- $0 start
- ;;
-
- *) echo "$0: error: unknown option $1"
- usage
- ;;
-esac
-exit 0