# Minimal shim for use by init scripts. Not complete, and strongly not
# recommended in the d-i environment, but pcmcia-cs-udeb needs it now.

start_daemon () { echo 'start_daemon not implemented' >&2; }
pidofproc () { echo 'pidofproc not implemented' >&2; return 4; }
killproc () { echo 'killproc not implemented' >&2; return 4; }

log_success_msg () { echo "$@"; }
log_failure_msg () { echo "$@"; }
log_warning_msg () { echo "$@"; }

# Non-LSB helper functions
get_lsb_header_val () { return 1; }
log_begin_msg () {
	if [ -z "$1" ]; then
		return 1
	fi
	printf %s "$@"
}
log_end_msg () {
	if [ -z "$1" ]; then
		return 1
	fi
	if [ "$1" -eq 0 ]; then
		echo "done."
	else
		echo "failed."
	fi
	return "$1"
}
