android-custom/dist-font/cm.sh

33 lines
684 B
Bash
Raw Normal View History

2019-08-29 08:48:16 +02:00
#!/sbin/sh
set -e
# $SYSTEM set by the caller
# $PRODUCT set by the caller
# $SYSTEM_EXT set by the caller
2019-08-29 08:48:16 +02:00
cd "$(dirname $0)"
export PATH="${PATH}:${SYSTEM}/bin:${SYSTEM}/xbin"
# install iptables script
echo "Installing font"
2021-11-05 11:39:57 +01:00
cp cm-data/*/*.ttf ${SYSTEM}/fonts/
chown root:root ${SYSTEM}/fonts/*.ttf
chmod 644 ${SYSTEM}/fonts/*.ttf
2019-08-29 08:48:16 +02:00
# install restore script
echo "Installing restore script"
cp cm-data/99-font.sh.addon ${SYSTEM}/addon.d/99-font.sh
chown root:root ${SYSTEM}/addon.d/99-font.sh
chmod 755 ${SYSTEM}/addon.d/99-font.sh
# call restore script post to remove bloat
export SYSTEM
export PRODUCT
export SYSTEM_EXT
2019-08-29 08:48:16 +02:00
${SYSTEM}/addon.d/99-font.sh post-restore
echo "Done"