06-26-2017, 01:32 PM | #1 |
Enthusiast
Posts: 48
Karma: 6489
Join Date: Dec 2014
Location: Slovakia
Device: Onyx M96, Kobo Glo HD
|
Keyboard patch - help please
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 Code:
KERNEL=="loop0", RUN+="/root/keyboard_patch.sh" 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 am I doing wrong? Thanks for help. Last edited by helour; 06-27-2017 at 10:18 AM. Reason: Added new (corrected) packages |
06-26-2017, 02:08 PM | #2 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
You could call "/sbin/reboot" as the last line of keyboard_patch.sh. (Maybe one has to call sync before that, in order to make sure that everything gets written to disc before rebooting. I do not know exactly.) Alternatively, could also kill nickel (and some related processes) and then relaunch it again, but rebooting is much easier.
Last edited by tshering; 06-26-2017 at 02:13 PM. |
Advert | |
|
06-26-2017, 04:01 PM | #3 |
Enthusiast
Posts: 48
Karma: 6489
Join Date: Dec 2014
Location: Slovakia
Device: Onyx M96, Kobo Glo HD
|
Solved
Thanks,
sync and /sbin/reboot works fine. It is little bit time consuming, but it works. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Onyx Boox m96 - Default Keyboard vs Google Keyboard (video) | halox | Onyx Boox | 1 | 04-03-2015 09:45 PM |
HD Fire HD Keyboard and Bluetooth Keyboard? | Doc109 | Kindle Fire | 18 | 01-29-2013 09:54 AM |
Keyboard entry when no keyboard is displaying | geneven1 | enTourage eDGe | 5 | 06-14-2011 06:07 AM |
patch Displays a soft Cyrillic Keyboard on Screen | mikestone1776 | Amazon Kindle | 2 | 04-04-2011 07:09 AM |
Your vote - keyboard or no keyboard on Kindle | mrzerga | Amazon Kindle | 56 | 03-10-2011 07:22 PM |