mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
1e69fae7bc
Adds support for devices found in https://blog.bq.com/es/bq-ereaders-developers-program/. Tested on BQ Cervantes 4 (last BQ device from 2017). It adds a new touch input event handler (discussed in #4275) which should work on other single touch devices (ie: Kobo Touch, Mini, Glo, Aura HD) but wasn't tested. Includes base bump with: [feat] Add BQ/Fnac device support (https://github.com/koreader/koreader-base/pull/745)
27 lines
548 B
Bash
27 lines
548 B
Bash
#!/bin/sh
|
|
|
|
lsmod | grep -q g_file_storage || exit 1
|
|
|
|
modprobe -r g_file_storage
|
|
sleep 1
|
|
|
|
PCB_ID=$(/usr/bin/ntxinfo /dev/mmcblk0 | grep pcb | cut -d ":" -f2)
|
|
DISK=/dev/mmcblk
|
|
|
|
if [ "$PCB_ID" -eq 22 ] || [ "$PCB_ID" -eq 23 ]; then
|
|
PARTITION="${DISK}0p7"
|
|
else
|
|
PARTITION="${DISK}0p4"
|
|
fi
|
|
|
|
MOUNT_ARGS="noatime,nodiratime,shortname=mixed,utf8"
|
|
|
|
dosfsck -a -w "$PARTITION" >dosfsck.log 2>&1
|
|
|
|
mount -o "$MOUNT_ARGS" -t vfat "$PARTITION" /mnt/onboard
|
|
|
|
PARTITION=${DISK}1p1
|
|
|
|
[ -e "$PARTITION" ] && mount -o "$MOUNT_ARGS" -t vfat "$PARTITION" /mnt/sd
|
|
|