#! /bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
BTNAME=/usr/bin/btname
NAME=btname

test -x $BTNAME || exit 0

case "$1" in
  start)
	echo -n "Setting the Bluetooth name: "
	$BTNAME -r
	if [ $? -eq 0 ]; then
		echo "done."
	else
		echo "failed."
	fi
	;;
  stop)
	;;
  restart)
  	$0 stop
	$0 start	
	;;
  force-reload)
  	$0 stop
	$0 start	
	;;
  *)
	;;
esac

exit 0
