View Single Post
Old 07-19-2015, 05:48 AM   #5
boriar
Evangelist
boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.boriar ought to be getting tired of karma fortunes by now.
 
boriar's Avatar
 
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
Well, I rarely use telnet and never when use that script. I use it with my sideload png and epub and worked like a charm. Can it be caused by telnet running?

You can try that one (not mine, author is tshering). That one is used to mount and unmount from KSM like it was nickel:

Code:
#!/bin/sh

versionfilename=/mnt/onboard/.kobo/version

#PRODUCT_ID is already exported by other script
VERSION=$(awk -F"," '{print $3}' $versionfilename)
SN=$(awk -F"," '{print $1}' $versionfilename)

MODULE_LOADED=`lsmod | grep -c g_file_storage`


VENDOR_ID=0x2237

DEV="/dev/mmcblk1p1"
if [ -e /dev/mmcblk1p1 ]; then
  LUNS=/dev/mmcblk0p3,/dev/mmcblk1p1
else
  LUNS=/dev/mmcblk0p3
fi

PARAMS="vendor=$VENDOR_ID product=$PRODUCT_ID vendor_id=Kobo product_id=eReader-$VERSION SN=$SN"
sync
echo 3 > /proc/sys/vm/drop_caches
#umount -l /mnt/onboard
umount -l /mnt/sd

/sbin/insmod /drivers/$PLATFORM/usb/gadget/arcotg_udc.ko
sleep 2

/sbin/insmod /drivers/$PLATFORM/usb/gadget/g_file_storage.ko file=$LUNS stall=1 removable=1 $PARAMS
sleep 1
boriar is offline   Reply With Quote