diff options
Diffstat (limited to 'net-misc/ndisc6/files')
-rw-r--r-- | net-misc/ndisc6/files/rdnssd.rc-2 | 24 | ||||
-rw-r--r-- | net-misc/ndisc6/files/resolvconf-2 | 7 |
2 files changed, 31 insertions, 0 deletions
diff --git a/net-misc/ndisc6/files/rdnssd.rc-2 b/net-misc/ndisc6/files/rdnssd.rc-2 new file mode 100644 index 000000000000..a3a2a45a2d1f --- /dev/null +++ b/net-misc/ndisc6/files/rdnssd.rc-2 @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount + before net + use logger +} + +command="rdnssd" +pidfile="/var/run/rdnssd.pid" +command_args="${RDNSSD_OPTS}" +command_args_foreground="-f" + +start_pre() { + checkpath -d -o nobody /var/run/rdnssd +} + +stop_post() { + if command -v resolvconf >/dev/null; then + resolvconf -f -d rdnssd + fi +} diff --git a/net-misc/ndisc6/files/resolvconf-2 b/net-misc/ndisc6/files/resolvconf-2 new file mode 100644 index 000000000000..79d69c60e7ad --- /dev/null +++ b/net-misc/ndisc6/files/resolvconf-2 @@ -0,0 +1,7 @@ +#!/bin/sh + +if command -v resolvconf >/dev/null; then + exec resolvconf -a rdnssd </var/run/rdnssd/resolv.conf +else + exec "$(dirname "$0")"/merge-hook +fi |