Skip to content

Commit

Permalink
Merge pull request #171 from kloptops/main
Browse files Browse the repository at this point in the history
Fixed pm_finish, and font extraction code in PortMaster/funcs.txt.
  • Loading branch information
kloptops authored Oct 7, 2024
2 parents 6ae7dbe + 717c045 commit a14a8fc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion PortMaster/funcs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export PM_CAN_MOUNT="${PM_CAN_MOUNT:-Y}"
if [ -f "$controlfolder/pylibs/resources/NotoSans.tar.xz" ]; then
# TODO: make sure this works on all CFW.
$ESUDO tar -C "$controlfolder/pylibs/resources" -xf "$controlfolder/pylibs/resources/NotoSans.tar.xz"

if [ -f "$controlfolder/pylibs/resources/NotoSansJP-Regular.ttf" ]; then
$ESUDO rm -f "$controlfolder/pylibs/resources/NotoSans.tar.xz"
fi
fi

if [ -f "$PM_RESOURCE_DIR/do_init" ]; then
Expand Down Expand Up @@ -99,5 +103,9 @@ pm_finish() {
$ESUDO pkill -f gptokeyb
$ESUDO pkill -f gptokeyb2

$ESUDO systemctl restart oga_events & 2> /dev/null
$ESUDO systemctl restart oga_events 2> /dev/null &

if [ ! -z "$(echo "$CUR_TTY" | grep -e '^/dev/tty')" ]; then
printf "\033c" > "$CUR_TTY"
fi
}

0 comments on commit a14a8fc

Please sign in to comment.