projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a3155
)
as a workaround, send the lan ip address as primary dns to chillispot clients (fixes...
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 29 Sep 2006 20:35:45 +0000
(20:35 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 29 Sep 2006 20:35:45 +0000
(20:35 +0000)
SVN-Revision: 4878
net/chillispot/files/chillispot.init
patch
|
blob
|
history
diff --git
a/net/chillispot/files/chillispot.init
b/net/chillispot/files/chillispot.init
index 289b1fe8a5519e693f9591ced17853fa452121c0..26aff70b2443eb8ce41007d6b15db46eb3c133d8 100644
(file)
--- 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