packages/net/pepperspot/files/pepperspot.init

20 lines
315 B
Plaintext
Raw Normal View History

#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2012 OpenWrt.org
START=50
SERVICE_USE_PID=1
SERVICE_PID_FILE=/var/run/pepper.pid
start() {
. /lib/functions/network.sh
local ipaddr
network_get_ipaddr ipaddr lan && \
service_start /usr/sbin/pepper --dns1="$ipaddr"
}
stop() {
service_stop /usr/sbin/pepper
}