mirror of
https://github.com/FEX-Emu/FEX.git
synced 2024-12-14 17:38:47 +00:00
6ac942266f
This doesn't currently install thunks which can come a bit later. We require a postinst and prerm step for importing and unimporting the binfmt_misc files. Easy enough
18 lines
329 B
Bash
Executable File
18 lines
329 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
update_binfmt() {
|
|
# Check for update-binfmts
|
|
command -v update-binfmts >/dev/null || return 0
|
|
|
|
# Uninstall
|
|
update-binfmts --unimport FEX-x86
|
|
update-binfmts --unimport FEX-x86_64
|
|
}
|
|
|
|
if [ $(uname -m) = 'aarch64' ]; then
|
|
update_binfmt
|
|
fi
|
|
|
|
# Remove FEXInterpreter hardlink
|
|
unlink /usr/bin/FEXInterpreter
|