Subversion Repositories My Stuff

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

#!/bin/sh

#####################################################################
# Script to mount obex mobile device via bluetooth
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# Author: Andrzej Kardaƛ
# License: GPLv3
# The full version of the licencse can be obtainted by visiting:
# http://www.gnu.org/licenses/gpl.html
#######################################################################

MOUNTPOINT="/tmp/${USER}-${1}"

#Create mount directory
mkdir ${MOUNTPOINT}
#Mount the device
obexfs -b ${1} ${MOUNTPOINT}
sleep 5
/usr/bin/krusader --left ${HOME} --right ${MOUNTPOINT}
#/usr/bin/dolphin ${MOUNTPOINT}
#Unmount the device
fusermount -u ${MOUNTPOINT}
sleep 5
#Remove mount directory
rmdir ${MOUNTPOINT}