From: nbd 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://207.154.207.93/?a=commitdiff_plain;h=c3f4eb5d0a1ec876fe76d7f767715fcebca72741;p=packages.git as a workaround, send the lan ip address as primary dns to chillispot clients (fixes #737) git-svn-id: svn://svn.openwrt.org/openwrt/packages@4878 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/chillispot/files/chillispot.init b/net/chillispot/files/chillispot.init index 289b1fe8a..26aff70b2 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