mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
074e606599
storage devices. DSBMD watches the mount table for changes, monitors devd events for new storage devices, polls CD/DVD drives and card readers for media change events, deter- mines media types, volume names, and filesystem types. Mountable devices, changes in the mount table as well as device add/remove events and altered states of mountable devices are presented to clients. Clients can request DSBMD to mount, unmount, and eject media, or set the CD/DVD reading speed. WWW: http://freeshell.de/~mk/projects/dsbmd.html PR: 207897 Submitted by: mk@nic-nac-project.org
29 lines
448 B
Bash
29 lines
448 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: dsbmd
|
|
# REQUIRE: LOGIN devfs devd mountlate
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# dsbmd_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable dsbmd.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=dsbmd
|
|
rcvar=dsbmd_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${dsbmd_enable:=NO}
|
|
|
|
command=%%PREFIX%%/libexec/${name}
|
|
pidfile=/var/run/${name}.pid
|
|
|
|
run_rc_command "$1"
|