#!/bin/dash
MAXWAIT=20
if [ -x /etc/init.d/85-bluetooth ]; then
	while ! pidof bluetoothd && [ $MAXWAIT -gt 0 ] ; do
		sleep 1
		MAXWAIT=$(( $MAXWAIT - 1))
	done
	if pidof bluetoothd; then
		exec bluetooth-applet
	fi
fi
