]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@bruni.home.brehm-online.com>
Mon, 16 Jan 2012 18:58:51 +0000 (19:58 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Mon, 16 Jan 2012 18:58:51 +0000 (19:58 +0100)
Package changes:
+net-misc/radvd-1.8.2

.etckeeper
conf.d/radvd [new file with mode: 0644]
init.d/radvd [new file with mode: 0755]

index 73ff09cefa9dce8b2f833eecb6f12c3cb76db8a3..ff37f2a14d88337bc00522571932225ee9460378 100755 (executable)
@@ -181,6 +181,7 @@ maybe chmod 0644 './conf.d/ntpd'
 maybe chmod 0644 './conf.d/pciparm'
 maybe chmod 0644 './conf.d/pydoc-2.7'
 maybe chmod 0644 './conf.d/pydoc-3.1'
+maybe chmod 0644 './conf.d/radvd'
 maybe chmod 0644 './conf.d/rsyncd'
 maybe chmod 0644 './conf.d/samba'
 maybe chmod 0644 './conf.d/saslauthd'
@@ -647,6 +648,7 @@ maybe chmod 0755 './init.d/procfs'
 maybe chmod 0755 './init.d/pwcheck'
 maybe chmod 0755 './init.d/pydoc-2.7'
 maybe chmod 0755 './init.d/pydoc-3.1'
+maybe chmod 0755 './init.d/radvd'
 maybe chmod 0755 './init.d/reboot.sh'
 maybe chmod 0755 './init.d/root'
 maybe chmod 0755 './init.d/rsyncd'
diff --git a/conf.d/radvd b/conf.d/radvd
new file mode 100644 (file)
index 0000000..e025c68
--- /dev/null
@@ -0,0 +1,11 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.conf,v 1.1 2006/07/19 13:02:36 uberlord Exp $
+
+# Extra options to pass to radvd
+OPTIONS=""
+
+# Set this to "no" to tell the init script NOT to set up IPv6 forwarding
+# using /proc/sys/net/ipv6/conf/all/forwarding
+# Only change this if you know what you're doing!
+FORWARD="yes"
diff --git a/init.d/radvd b/init.d/radvd
new file mode 100755 (executable)
index 0000000..5a8fedf
--- /dev/null
@@ -0,0 +1,66 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.init,v 1.6 2011/12/04 10:14:13 swegener Exp $
+
+CONFIGFILE=/etc/radvd.conf
+PIDFILE=/var/run/radvd/radvd.pid
+SYSCTL_FORWARD=net.ipv6.conf.all.forwarding
+
+extra_started_commands="reload"
+
+depend() {
+       need net
+}
+
+checkconfig() {
+       if [ ! -f "${CONFIGFILE}" ]; then
+               eerror "Configuration file ${CONFIGFILE} not found"
+               return 1
+       fi
+
+       checkpath -d -o radvd:radvd ${PIDFILE%/*}
+}
+
+start() {
+       checkconfig || return 1
+
+       if [ "${FORWARD}" != "no" ]; then
+               ebegin "Enabling IPv6 forwarding"
+               sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
+               eend $?
+       fi
+
+       ebegin "Starting IPv6 Router Advertisement Daemon"
+       start-stop-daemon --start --exec /usr/sbin/radvd \
+               --pidfile "${PIDFILE}" \
+               -- -C "${CONFIGFILE}" -p "${PIDFILE}" -u radvd ${OPTIONS}
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping IPv6 Router Advertisement Daemon"
+       start-stop-daemon --stop --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
+       eend $?
+
+       if [ "${FORWARD}" != "no" ]; then
+               ebegin "Disabling IPv6 forwarding"
+               sysctl -w "${SYSCTL_FORWARD}=0" > /dev/null
+               eend $?
+       fi
+}
+
+reload() {
+       checkconfig || return 1
+
+       if [ "${FORWARD}" != "no" ]; then
+               ebegin "Enabling IPv6 forwarding"
+               sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
+               eend $?
+       fi
+
+       ebegin "Reloading IPv6 Router Advertisement Daemon"
+       start-stop-daemon --stop --signal HUP --oknodo \
+               --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
+       eend $?
+}