#!/sbin/runscript # Distributed under the terms of the GNU General Public License, v2 or later depend() { need modules # v4l as modules } checkconfig() { if [ ! -e /dev/v4l/vbi* ] ; then eerror "/dev/v4l/vbi* do not exist, please create it, or load the" eerror "correct modules." return 1 fi } start() { checkconfig || return 1 ebegin "Starting nxtvepg in daemon mode" /usr/bin/nxtvepg -daemon >/dev/null 2>&1 eend $? } stop() { checkconfig || return 1 ebegin "Stopping nxtvepg" /usr/bin/nxtvepg -daemonstop >/dev/null 2>&1 eend $? }