#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50

BIN=mini_httpd
DEFAULT=/etc/default/$BIN
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
[ -f $DEFAULT ] && . $DEFAULT

start() {
	[ -d $RUN_D ] || mkdir -p $RUN_D
	$BIN $OPTIONS 2>/dev/null
}

stop() {
	[ -f $PID_F ] && kill $(cat $PID_F)
}
