packages/radvd: use new service functions
authorNicolas Thill <nico@openwrt.org>
Wed, 9 Nov 2011 23:49:24 +0000 (23:49 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 9 Nov 2011 23:49:24 +0000 (23:49 +0000)
SVN-Revision: 28927

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

index 3024b7a7321e2d3d6fc18e733330822d7994a7ae..f5ae23917ada8ecf89c330a4d238fef772636a5a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=radvd
 PKG_VERSION:=1.8.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 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
 }