Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50094

Keyboard patch - help please

$
0
0
I've created this simple script for Czech/Slovak keyboard patch (It is intended for BFU, without the knowledge about the file patching on PC):
Code:

#!/bin/sh

inpfile="/usr/local/Kobo/libnickel.so.1.0.0"
tmpfile="/tmp/libnickel.so"

codename=`/bin/kobo_config.sh`;
case $codename in
    pixie|trilogy|pika|kraken|phoenix|star)
        patchno="1";;  # Mini    | Touch (B/C) | Touch 2.0 | Glo | Aura | Aura Ed. 2
    dragon|dahlia|snow)
        patchno="2";;  # Aura HD | Aura H2O    | Aura H2O 2
    alyssum|daylight)
        patchno="3";;  # Glo HD  | Aura ONE
esac

cp $inpfile $tmpfile
cp $inpfile $inpfile.sav
patch32lsb -p /root/keyboard$patchno.patch -i $tmpfile -o $tmpfile
cp $tmpfile $inpfile
rm $tmpfile

sleep 5

rm /etc/udev/rules.d/keyboard_patch.rules
rm /root/keyboard_patch.sh
rm /root/keyboard1.patch
rm /root/keyboard2.patch
rm /root/keyboard3.patch
rm /sbin/patch32lsb

It is attached to udev.rules:
Code:

KERNEL=="loop0", RUN+="/root/keyboard_patch.sh"
The libnickel.so file is patched and copied to the right place. It works fine.

But I have to switch off and switch on my Kobo to accept new libnickel.so.
Is it possible to do it without manual switch off and on? What I'm doing wrong?

Thanks for help.


Viewing all articles
Browse latest Browse all 50094

Latest Images

Trending Articles



Latest Images