Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#!/bin/sh
#
# $NetBSD: ccd,v 1.8 2021/08/03 05:15:20 mlelstv Exp $
#

# PROVIDE: ccd
# REQUIRE: devpubd
# BEFORE:  DISKS
# KEYWORD: shutdown

$_rc_subr_loaded . /etc/rc.subr

name="ccd"
rcvar=$name
start_cmd="ccd_start"
stop_cmd="ccd_stop"

ccd_start()
{
	if [ -f /etc/ccd.conf ]; then
		echo "Configuring CCD devices."
		ccdconfig -C
	fi
}

ccd_stop()
{
	if [ -f /etc/ccd.conf ]; then
		echo "Unconfiguring CCD devices."
		ccdconfig -U
	fi
}

load_rc_config $name
run_rc_command "$1"