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

. /lib/functions.sh
include /lib/dsl

START=20
USE_PROCD=1

DSLMNGR=$(which dslmngr)

start_service() {
	[ -n "$DSLMNGR" ] && {
		procd_open_instance
		procd_set_param command "$DSLMNGR"
		procd_set_param respawn
		procd_close_instance
	}

	xdsl_configure
	xtm_create_devices
}

stop_service() {
	xtm_remove_devices
	xdsl_stop
}

boot() {
	xdsl_init

	start
}

reload_service() {
	stop
	start
}

service_triggers() {
        procd_add_reload_trigger dsl
}
