From: Felix Fietkau Date: Fri, 29 Sep 2006 20:35:45 +0000 (+0000) Subject: as a workaround, send the lan ip address as primary dns to chillispot clients (fixes... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=9921acdc6222cc2e4edbaf0e233a736dfece82c8 as a workaround, send the lan ip address as primary dns to chillispot clients (fixes #737) SVN-Revision: 4878 --- diff --git a/net/chillispot/files/chillispot.init b/net/chillispot/files/chillispot.init index 289b1fe8a5..26aff70b24 100644 --- a/net/chillispot/files/chillispot.init +++ b/net/chillispot/files/chillispot.init @@ -1,4 +1,7 @@ #!/bin/sh +. /etc/functions.sh +include /lib/network +scan_interfaces RUN_D=/var/run PID_F=$RUN_D/chilli.pid @@ -7,7 +10,8 @@ case $1 in start) /sbin/insmod tun >/dev/null 2>&1 [ -d $RUN_D ] || mkdir -p $RUN_D - /usr/sbin/chilli + config_get ipaddr lan ipaddr + /usr/sbin/chilli --dns1="$ipaddr" ;; stop) [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1