summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-08 22:20:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-08 22:20:08 +0000
commitb337f8d026d52050a9f3038f1d47727537071b20 (patch)
tree0c9932b23b288967b2cc50caf40d082182351db1
parent03c27aeea7654d76f6f73346bcbf1205a23d964b (diff)
re-add ospfd/ospf6d support which got lost, and build scripts for them
-rw-r--r--etc/rc6
-rw-r--r--etc/rc.d/ospfd11
-rw-r--r--etc/rc.d/ospfd611
3 files changed, 25 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index e3533f42f38..2ab24dc1318 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.382 2011/07/08 22:03:56 deraadt Exp $
+# $OpenBSD: rc,v 1.383 2011/07/08 22:20:05 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -509,8 +509,8 @@ fi
echo 'preserving editor files.'; /usr/libexec/vi.recover
echo -n 'starting network daemons:'
-start_daemon sshd snmpd ldpd ripd bgpd ifstated relayd dhcpd
-start_daemon dhcrelay mrouted dvmrpd
+start_daemon sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated
+start_daemon relayd dhcpd dhcrelay mrouted dvmrpd
if ifconfig lo0 inet6 >/dev/null 2>&1; then
fw=`sysctl -n net.inet6.ip6.forwarding`
diff --git a/etc/rc.d/ospfd b/etc/rc.d/ospfd
new file mode 100644
index 00000000000..2120468e4e1
--- /dev/null
+++ b/etc/rc.d/ospfd
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $OpenBSD: ospfd,v 1.1 2011/07/08 22:20:07 deraadt Exp $
+
+daemon="/usr/sbin/ospfd"
+
+. /etc/rc.d/rc.subr
+
+pexp="ospfd: parent.*"
+
+rc_cmd $1
diff --git a/etc/rc.d/ospfd6 b/etc/rc.d/ospfd6
new file mode 100644
index 00000000000..52ad396fc92
--- /dev/null
+++ b/etc/rc.d/ospfd6
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $OpenBSD: ospfd6,v 1.1 2011/07/08 22:20:07 deraadt Exp $
+
+daemon="/usr/sbin/ospfd6"
+
+. /etc/rc.d/rc.subr
+
+pexp="ospf6d: parent.*"
+
+rc_cmd $1