aboutsummaryrefslogtreecommitdiff
blob: bed8120b1a62bcf226a4af5c3f258720baf9af33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# $Id$
addon_main() {
	local exitcode=0
	if [ "${waitconditions}" ]; then
		ebegin "  Waiting for prerequisites (devices nodes etc.)" 
		waitfor 10 wait_for_multiple_condition
		exitcode="$?"
		exitmsg="Can not start VDR."
		case "$exitcode" in
			1)
				exitmsg="Timeout, can not start VDR."
				;;
		esac
		eend "$exitcode" "${exitmsg}"
		[ -n "${condition_msg}" ] && ewarn "${condition_msg}"
		[ "$(type -t "${condition_msg_func}")" = "function" ] && eval "${condition_msg_func}"
	fi
	return $exitcode
}