Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8 | kardasa | 1 | #!/bin/sh |
2 | |||
3 | ##################################################################### |
||
4 | # Script to mount obex mobile device via bluetooth |
||
5 | # This script is distributed in the hope that it will be useful, |
||
6 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
7 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
8 | # GNU General Public License for more details. |
||
9 | # Author: Andrzej KardaĆ |
||
10 | # License: GPLv3 |
||
11 | # The full version of the licencse can be obtainted by visiting: |
||
12 | # http://www.gnu.org/licenses/gpl.html |
||
13 | ####################################################################### |
||
14 | |||
15 | MOUNTPOINT="/tmp/${USER}-${1}" |
||
16 | |||
17 | #Create mount directory |
||
18 | mkdir ${MOUNTPOINT} |
||
19 | #Mount the device |
||
20 | obexfs -b ${1} ${MOUNTPOINT} |
||
21 | sleep 5 |
||
22 | /usr/bin/krusader --left ${HOME} --right ${MOUNTPOINT} |
||
23 | #/usr/bin/dolphin ${MOUNTPOINT} |
||
24 | #Unmount the device |
||
25 | fusermount -u ${MOUNTPOINT} |
||
26 | sleep 5 |
||
27 | #Remove mount directory |
||
28 | rmdir ${MOUNTPOINT} |