Mais uma aventura nerd, um scriptzinho para montar o seu celular com o p3nfsd automaticamente :-)
#!/bin/bash
montacel()
{
hciconfig hci0 up
rfcomm bind 0 $(hcitool scan | awk -F" " '{print $1}' | tail -1) 13
p3nfsd -series60 -dir /mnt/psion -tty /dev/rfcomm0
}
desmontacel()
{
cd ~
ls /mnt/psion/exit
rfcomm release $(rfcomm | awk -F" " '{print $2}')
}
case $1 in
mount)
montacel
;;
umount)
desmontacel
;;
status)
rfcomm
;;
*)
echo " "
echo "Usage : $0 mount / umount / status "
;;
esac