#!/bin/sh /etc/rc.common

START=99
STOP=01

USE_PROCD=1

. /etc/userinterface/http_access

start_service() {
	local enable

	config_load userinterface
	config_get_bool enable global enable 0

	if [ "${enable}" -eq "0" ]; then
		return 0
	fi

	http_access_configure
	http_access_service_start
}

stop_service() {
	http_access_service_stop
}

reload_service() {
	stop
	start
}

service_triggers() {
	procd_add_reload_trigger "userinterface"
}
