packages/mrd6: use new service functions, add a dependency on kmod-ipv6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28925 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
83d1026e29
commit
9df4b4e285
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=mrd6
|
PKG_NAME:=mrd6
|
||||||
PKG_VERSION:=0.9.6
|
PKG_VERSION:=0.9.6
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
||||||
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mrd6/
|
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mrd6/
|
||||||
@ -25,7 +25,7 @@ define Package/mrd6
|
|||||||
CATEGORY:=IPv6
|
CATEGORY:=IPv6
|
||||||
TITLE:=IPv6 multicast routing daemon
|
TITLE:=IPv6 multicast routing daemon
|
||||||
URL:=http://fivebits.net/proj/mrd6
|
URL:=http://fivebits.net/proj/mrd6
|
||||||
DEPENDS:=+libstdcpp
|
DEPENDS:=+kmod-ipv6 +libstdcpp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/mrd6/description
|
define Package/mrd6/description
|
||||||
|
@ -1,22 +1,13 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
/sbin/lsmod | grep ipv6 > /dev/null
|
service_start /usr/sbin/mrd6 -f /etc/mrd6.conf -D
|
||||||
if [ "$?" != "0" ]; then
|
|
||||||
echo -n "IPv6 stack required by mrd6. Loading ipv6 module: "
|
|
||||||
/sbin/insmod ipv6
|
|
||||||
echo "Done."
|
|
||||||
fi
|
|
||||||
echo -n "Starting IPv6 multicast router (mrd6): "
|
|
||||||
/usr/sbin/mrd6 -f /etc/mrd6.conf -D
|
|
||||||
echo "Done."
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo -n "Stopping IPv6 multicast router (mrd6): "
|
service_stop /usr/sbin/mrd6
|
||||||
killall mrd6
|
|
||||||
echo "Done."
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user