From e758f86a63f8f463b7a4224039ea83a51810b51f Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 3 Jan 2006 12:53:01 +0000 Subject: Added mrd6 package : IPv6 multicast routing daemon git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2816 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/mrd6/files/mrd6.conf | 14 ++++++++++++++ openwrt/package/mrd6/files/mrd6.init | 29 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 openwrt/package/mrd6/files/mrd6.conf create mode 100755 openwrt/package/mrd6/files/mrd6.init (limited to 'openwrt/package/mrd6/files') diff --git a/openwrt/package/mrd6/files/mrd6.conf b/openwrt/package/mrd6/files/mrd6.conf new file mode 100644 index 000000000..84ce923a3 --- /dev/null +++ b/openwrt/package/mrd6/files/mrd6.conf @@ -0,0 +1,14 @@ +log { + attach stderr normal; + attach default "/var/log/mrd6.log" message_err; +} + +interfaces br0 enable = false; // Should be vlan0 + eth1 but Linux bridge seems broken for multicast +interfaces eth0 enable = false; // Interface to internal bridge +handle-proper-bridge = true; // use ETH_P_ALL to see all packets on wrt54g + +// The default configured RP is m6bone's Renater RP. +// Change this according to your setup + +groups ff00::/8 pim rp = 2001:660:3007:300:1::; + diff --git a/openwrt/package/mrd6/files/mrd6.init b/openwrt/package/mrd6/files/mrd6.init new file mode 100755 index 000000000..886723f15 --- /dev/null +++ b/openwrt/package/mrd6/files/mrd6.init @@ -0,0 +1,29 @@ +#!/bin/sh + +case $1 in +start) + /sbin/lsmod | grep ipv6 > /dev/null + 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) + echo -n "Stopping IPv6 multicast router (mrd6): " + killall mrd6 + echo "Done." + ;; +restart) + $0 stop + $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + ;; +esac +exit 0 -- cgit v1.2.3