[packages_10.03.2] radvd: backport r28927
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Feb 2012 19:01:29 +0000 (19:01 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Feb 2012 19:01:29 +0000 (19:01 +0000)
SVN-Revision: 30315

ipv6/radvd/Makefile
ipv6/radvd/files/radvd.init

index 01b1b6d9005cbc6d0b51d32249868940ab750bae..671e725eb27ccb10548ab74a1186160bdc68f0cb 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=radvd
 PKG_VERSION:=1.8.3
-PKG_RELEASE:=2
+PKG_RELEASE:=2.1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
index d513bba29416c9e9dcd7e0d27048795ff1d4e11a..62e184b77b856eab96ce48ccab6000cf8774343d 100644 (file)
@@ -1,7 +1,11 @@
 #!/bin/sh /etc/rc.common
+# Copyright (C) 2008-2011 OpenWrt.org
 # Copyright (C) 2008  Alina Friedrichsen <x-alina@gmx.net>
+
 START=50
 
+SERVICE_USE_PID=1
+
 RADVD_INTERFACE_STRING_OPTIONS='MaxRtrAdvInterval MinRtrAdvInterval MinDelayBetweenRAs AdvLinkMTU AdvReachableTime AdvRetransTimer AdvCurHopLimit AdvDefaultLifetime AdvDefaultPreference HomeAgentLifetime HomeAgentPreference'
 RADVD_INTERFACE_BOOLEAN_OPTIONS='IgnoreIfMissing AdvSendAdvert UnicastOnly AdvManagedFlag AdvOtherConfigFlag AdvSourceLLAddress AdvHomeAgentFlag AdvHomeAgentInfo AdvMobRtrSupportFlag AdvIntervalOpt'
 
@@ -425,9 +429,9 @@ start() {
 
        sysctl -w net.ipv6.conf.all.forwarding=1 > /dev/null 2> /dev/null
 
-       radvd -C "$RADVD_CONFIG_FILE" -m stderr_syslog -p /var/run/radvd.pid
+       service_start /usr/sbin/radvd -C "$RADVD_CONFIG_FILE" -m stderr_syslog -p /var/run/radvd.pid
 }
 
 stop() {
-       killall radvd
+       service_stop /usr/sbin/radvd
 }