diff options
Diffstat (limited to 'erusfont.install')
-rw-r--r-- | erusfont.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/erusfont.install b/erusfont.install new file mode 100644 index 000000000000..dffbae112794 --- /dev/null +++ b/erusfont.install @@ -0,0 +1,21 @@ +post_install() { + echo "Updating font cache... " + fc-cache -fs >/dev/null 2>&1 + mkfontscale /usr/share/fonts/local + mkfontdir /usr/share/fonts/local + xset fp rehash >/dev/null 2>&1 + echo "Make sure that you add /usr/share/fonts/local/ to xorg.conf under the" + echo "\"Files\" section" +} + +post_upgrade() { + post_install +} + +post_remove() { + fc-cache -fs >/dev/null 2>&1 + mkfontscale /usr/share/fonts/local + mkfontdir /usr/share/fonts/local + xset fp rehash >/dev/null 2>&1 +} + |