View Single Post
Old 10-12-2013, 06:11 AM   #222
WabbitSeason
Junior Member
WabbitSeason began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2013
Device: Kobo Glo
The usbnet script didn't work for my Kobo Glo running 2.8.1b, and after a lot of debugging, I found that I had the problem solved in cgm999's post. I adapted usbnet.sh so it intelligently looks for the required modules under /drivers/ntx508 by replacing
Code:
    if [ $PLATFORM == freescale ]; then
        driver_root=$root
    else
        driver_root=/drivers/ntx508/usb
    fi
with
Code:
    if [ $PLATFORM == freescale ]; then
        driver_root=$root
    else
        driver_root=`dirname \`find /drivers/ntx508/ -name arcotg_udc.ko\``
        if [ -z $driver_root ]; then
            msgbox "usbnet" "ntx508 drivers missing!"
            exit 1
        fi
    fi
Now it should work for everyone without manual edits, and it has a chance to survive further module location changes Kobo might do in the future . Attached is the full script with my adaptation. Feel free to include it in any new releases, sergeyvl12!
Attached Files
File Type: txt usbnet.sh.txt (1,008 Bytes, 233 views)
WabbitSeason is offline   Reply With Quote