View Single Post
Posts: 58 | Thanked: 134 times | Joined on Dec 2012 @ Vilnius, Lithuania
#8
Any idea how to handle USB Mass Storage mode in elegant way?

Right now I just hack around /usr/sbin/osso-usb-mass-storage-enable.sh and /usr/sbin/osso-usb-mass-storage-disable.sh with umount and mount. My fstab is static

Code:
if [ $# = 1 ]; then
    umount /home/user/MyDocs
    STR=`cat $LUN0`
    if [ "x$STR" = "x" ]; then
       echo $1 > $LUN0
    else
        echo $1 > $LUN1
    fi
fi

exit 0
Code:
mount /home/user/MyDocs
exit 0
A bit different than in post #2, I believe ke-recv changed since then. Without "umount /home/user/MyDocs", my sdcard which is in /dev/mmcblk0p1 (because of SLOT_NUM exchange in /lib/udev/mmc_id) gets mounted on PC and stays mounted on N900 side.

I guess this is something to do with internal and external card name, but can't find where and who is passing what ;]

Last edited by iceskateclog; 2014-06-11 at 12:48.