#!/bin/sh
cierralanzador

appruta=`dirname "$0"`
cd "$appruta"

rulando=`rulando bluetoothd`

if [ "$rulando" != "Yes" ];then
	zenity --question --text "Este programa necesita que esté activado\n el servicio de bluetooth en el sistema. \n¿Desea que se active automáticamente al iniciar el sistema?"
	echo $?
	if [ $? = "0" ];then

		gksudo ./activabluetoothd
		python-whiteboard
	else
		exit 0
	fi

else

python-whiteboard

fi
