2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2012-05-28 15:45:55 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
|
|
|
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2006-06-20 17:54:51 +00:00
|
|
|
|
2012-05-28 15:45:55 +00:00
|
|
|
SERVICE_USE_PID=1
|
|
|
|
SERVICE_PID_FILE=/var/run/chilli.pid
|
2006-06-20 17:54:51 +00:00
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
2012-05-28 15:45:55 +00:00
|
|
|
. /lib/functions/network.sh
|
|
|
|
|
|
|
|
local ipaddr
|
|
|
|
network_get_ipaddr ipaddr lan && \
|
|
|
|
service_start /usr/sbin/chilli --dns1="$ipaddr"
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|
2006-06-20 17:54:51 +00:00
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
stop() {
|
2012-05-28 15:45:55 +00:00
|
|
|
service_stop /usr/sbin/chilli
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|