2008-12-14 16:44:39 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2012-05-28 15:20:46 +00:00
|
|
|
# Copyright (C) 2008-2012 OpenWrt.org
|
|
|
|
|
2008-12-14 16:44:39 +00:00
|
|
|
START=50
|
|
|
|
|
2012-05-28 15:20:46 +00:00
|
|
|
SERVICE_USE_PID=1
|
|
|
|
SERVICE_PID_FILE=/var/run/pepper.pid
|
2008-12-14 16:44:39 +00:00
|
|
|
|
|
|
|
start() {
|
2012-05-28 15:20:46 +00:00
|
|
|
. /lib/functions/network.sh
|
|
|
|
|
|
|
|
local ipaddr
|
|
|
|
network_get_ipaddr ipaddr lan && \
|
|
|
|
service_start /usr/sbin/pepper --dns1="$ipaddr"
|
2008-12-14 16:44:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2012-05-28 15:20:46 +00:00
|
|
|
service_stop /usr/sbin/pepper
|
2008-12-14 16:44:39 +00:00
|
|
|
}
|