View Single Post
Old 12-05-2018, 02:07 PM   #83
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by codychan View Post
Yeah,I read that thread before this patch request. I just want this function merged into patch system so I don't have to do other steps manually after installing patches.
Sorry, can't see what the problem is.
You can create a folder into kobopatch src (kobopatch_4.11.12019/src/delete_files) and there put the files with the content you need.
Perhaps something like:
Spoiler:
Code:
#!/bin/sh

rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Amasis*
# rm /usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir*
rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Caecilia*
# rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgia*
rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/GillSans*
rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/KBJ*
rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/KoboNickel*
rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Malabar*
rm usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/OpenDyslexic*

rm /etc/udev/rules.d/delete_fonts.rules
rm /root/delete_fonts.sh

Note I've commented Avenir and Georgia because they are system fonts. Perhaps you want to replace them with yours.
Then add the correspondant lines into files section of kobopatch.yaml:
Spoiler:
Code:
files:
  src/delete_files/delete_fonts.rules: etc/udev/rules.d/delete_fonts.rules
  src/delete_files/delete_fonts.sh: root/delete_fonts.sh


Good luck.
jcn363 is offline   Reply With Quote