I created a simple tool to install patches for Kobo. I get this idea from yoq.
Advantages:
My DB autobackup tool uses this installer and it works like a charme.
If you want to use it for you patch, you've simply to:
Currently kobo-patch can only append code at the end of file, or replace the text with another text. It uses sed with extended regular expression syntax. It can't replace more than a line for the moment.
Advantages:
- You don't risk to overwrite new firmware code with old code
- You don't risk to overwrite patches of other people
- Patches survive after firmware update (but not resets)
My DB autobackup tool uses this installer and it works like a charme.
If you want to use it for you patch, you've simply to:
- merge the content of this package with the source code of your project
- rename etc/udev/rules.d/96-PROGNAME-installer.rules
- edit it and change accordingly "/root/PROGNAME-install.sh"
- rename also /root/PROGNAME-install.sh accordingly
- edit it. You can find some example lines with "kobo-patch". You can remove them and add your "kobo-patch" commands. kobo-patch usage is very simple, try to run it via SSH and see the usage help.
Currently kobo-patch can only append code at the end of file, or replace the text with another text. It uses sed with extended regular expression syntax. It can't replace more than a line for the moment.