# Calculate format=patch path=/etc/init.d
<reg>(start-stop-daemon --start -q \\
\s*--pidfile /var/run/ConsoleKit/pid \\
\s*--exec /usr/sbin/console-kit-daemon --\s*)(
\s*eend)\s+\$\?</reg>
<text>\1
	res=$?
	for waiting in {0..24}
	do
		[[ -f /var/run/ConsoleKit/pid ]] &amp;&amp; break
		sleep 0.1
	done
\2 $res</text>
