Search
j0ke.net Open Build Service
>
Projects
>
server:routing
>
radvd
> radvd-suse.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File radvd-suse.patch of Package radvd
diff -uNr radvd-1.2.orig/suse/radvd.conf.empty radvd-1.2/suse/radvd.conf.empty --- radvd-1.2.orig/suse/radvd.conf.empty 1970-01-01 01:00:00.000000000 +0100 +++ radvd-1.2/suse/radvd.conf.empty 2009-04-23 20:59:01.000000000 +0200 @@ -0,0 +1,18 @@ +# NOTE: there is no such thing as a working "by-default" configuration file. +# At least the prefix needs to be specified. Please consult the radvd.conf(5) +# man page and/or /usr/share/doc/radvd-*/radvd.conf.example for help. +# +# +#interface eth0 +#{ +# AdvSendAdvert on; +# MinRtrAdvInterval 30; +# MaxRtrAdvInterval 100; +# prefix 2001:db8:1:0::/64 +# { +# AdvOnLink on; +# AdvAutonomous on; +# AdvRouterAddr off; +# }; +# +#}; diff -uNr radvd-1.2.orig/suse/radvd.init radvd-1.2/suse/radvd.init --- radvd-1.2.orig/suse/radvd.init 1970-01-01 01:00:00.000000000 +0100 +++ radvd-1.2/suse/radvd.init 2009-04-23 21:10:40.000000000 +0200 @@ -0,0 +1,69 @@ +#! /bin/sh +# +### BEGIN INIT INFO +# Provides: radvd +# Required-Start: $network $remote_fs +# Required-Stop: $network $remote_fs +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Description: router advertisement daemon for IPv6 +### END INIT INFO + +. /etc/rc.status + +# Shell functions sourced from /etc/rc.status: +# rc_check check and set local and overall rc status +# rc_status check and set local and overall rc status +# rc_status -v ditto but be verbose in local rc status +# rc_status -v -r ditto and clear the local rc status +# rc_failed set local and overall rc status to failed +# rc_reset clear local rc status (overall remains) +# rc_exit exit appropriate to overall rc status + +# First reset status of this service +rc_reset + +[ -f /etc/sysconfig/radvd ] && . /etc/sysconfig/radvd + +if [ "$1" == "status" ]; then + [ -f /usr/sbin/radvd ] || exit 4 +else + [ -f /usr/sbin/radvd ] || exit 1 +fi + +RETVAL=0 +PROG="radvd" +RADVD_BIN="/usr/sbin/radvd" + +# See how we were called. +case "$1" in + start) + + echo -n "Starting $PROG: " + startproc -f -p /var/run/radvd/radvd.pid $RADVD_BIN $OPTIONS + rc_status -v + ;; + stop) + echo -n "Stopping $PROG: " + killproc -p /var/run/radvd/radvd.pid $RADVD_BIN + rc_status -v + ;; + status) + checkproc -p /var/run/radvd/radvd.pid $RADVD_BIN + rc_status -v + ;; + restart) + $0 stop + $0 start + ;; + reload) + echo -n $"Reloading $PROG: " + killproc -p /var/run/radvd/radvd.pid -HUP $RADVD_BIN + rc_status -v + ;; + *) + echo $"Usage: $0 {start|stop|status|restart|reload}" + exit 1 +esac + +rc_exit diff -uNr radvd-1.2.orig/suse/radvd.sysconfig radvd-1.2/suse/radvd.sysconfig --- radvd-1.2.orig/suse/radvd.sysconfig 1970-01-01 01:00:00.000000000 +0100 +++ radvd-1.2/suse/radvd.sysconfig 2009-04-23 20:59:01.000000000 +0200 @@ -0,0 +1,7 @@ +# $Id: radvd.sysconfig,v 1.1 2001/11/14 19:58:11 lutchann Exp $ + +# No chroot; /var/run/radvd must be owned by -u. +OPTIONS="-u radvd" + +# Chroot; directory structure under /var/chroot/radvd has to be populated. +#OPTIONS="-u radvd -t /var/chroot/radvd"