1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-16 22:04:38 +02:00

ipv6-support: Fix default RA settings for dnsmasq

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34873 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cyrus 2012-12-23 18:22:48 +00:00
parent 3a230cdbcc
commit 40ccb5f49b
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=ipv6-support PKG_NAME:=ipv6-support
PKG_VERSION:=2012-12-22 PKG_VERSION:=2012-12-23
PKG_RELEASE:=1 PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

View File

@ -438,12 +438,12 @@ enable_router() {
if [ "$router_service" == "dnsmasq" ]; then if [ "$router_service" == "dnsmasq" ]; then
local dnsmasq_opts local dnsmasq_opts
config_get dnsmasq_opts global dnsmasq_opts config_get dnsmasq_opts "$network" dnsmasq_opts
[ -z "$dnsmasq_opts" ] && dnsmasq_opts="ra-stateful,ra-names" [ -z "$dnsmasq_opts" ] && dnsmasq_opts="ra-names,24h"
local conf="/var/etc/dnsmasq.d/ipv6-router-$network.conf" local conf="/var/etc/dnsmasq.d/ipv6-router-$network.conf"
mkdir -p $(dirname $conf) mkdir -p $(dirname $conf)
echo "dhcp-range=::1,constructor:$device,$dnsmasq_opts" > $conf echo "dhcp-range=::00ff,::ffff,constructor:$device,$dnsmasq_opts" > $conf
echo "enable-ra" >> $conf echo "enable-ra" >> $conf
/etc/init.d/dnsmasq restart /etc/init.d/dnsmasq restart
else else