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

START=90
USE_PROCD=1
QUIET=""

# Required openWRT packages: nodogsplash, and not related but for BW limiting use sqm-lua

load_modules() {
# Required kernel modules
# Dont turn off possible error messages!
#   $INSMOD ebtables
#   $INSMOD ebtable_broute
echo -n
}

unload_modules() {
    # Ebtables IPv4 Moduels
#   $RMMOD ebt_arp
#   $RMMOD ebt_ip
echo -n
}

restart() {
    echo "restarting..."
	stop_service
	start_service
}

start_service() {
    echo "starting nodogsplash..."
    
    nodogsplash
}

stop_service() {
    echo "Stopping nodogsplash..."
    
    ndsctl stop
    unload_modules
}

reload_service() {
    echo "reload service... NOT!"
}

boot() {
	# Be silent on boot, firewall might be started by hotplug already,
	# so don't complain in syslog.
	QUIET=-q
    echo "Booting service..."
}

