From 9921acdc6222cc2e4edbaf0e233a736dfece82c8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Sep 2006 20:35:45 +0000 Subject: [PATCH] as a workaround, send the lan ip address as primary dns to chillispot clients (fixes #737) SVN-Revision: 4878 --- net/chillispot/files/chillispot.init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2