#!/bin/sh
#
# send file using bluetooth
# args: [ bdaddr [ channel file ] ]
# <>                        : get the <bdaddr>
# <bdaddr>                  : get the <channel>
# <bdaddr> <channel> <file> : send the <file>
#
case "$#" in
0) hcitool scan ;; # target must be discoverable 
1) sdptool search --bdaddr $1 OPUSH ;;
3) obexftp --nopath --noconn --uuid none --bluetooth $1 --channel $2 --put $3 ;;
esac

#copied by Stephan karacson from colesen at https://bugzilla.redhat.com/show_bug.cgi?id=753617#c31

