XXX Updates apeinstall.sh to use F and P flags

Also updates ape loaders so that this will do something reasonable.

XXX broken on kernels older than 5.12. We should test for this.
This commit is contained in:
Jōshin 2024-01-05 16:20:43 -05:00
parent b2e80da453
commit 9757b725da
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -135,10 +135,10 @@ if [ x"$(uname -s)" = xLinux ]; then
echo >&2 echo >&2
echo registering APE with binfmt_misc >&2 echo registering APE with binfmt_misc >&2
echo you may need to edit configs to persist across reboot >&2 echo you may need to edit configs to persist across reboot >&2
echo '$SUDO sh -c "echo '"'"':APE:M::MZqFpD::/usr/bin/ape:'"'"' >/proc/sys/fs/binfmt_misc/register"' >&2 echo '$SUDO sh -c "echo '"'"':APE:M::MZqFpD::/usr/bin/ape:FP'"'"' >/proc/sys/fs/binfmt_misc/register"' >&2
$SUDO sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" || exit $SUDO sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:FP' >/proc/sys/fs/binfmt_misc/register" || exit
echo '$SUDO sh -c "echo '"'"':APE-jart:M::jartsr::/usr/bin/ape:'"'"' >/proc/sys/fs/binfmt_misc/register"' >&2 echo '$SUDO sh -c "echo '"'"':APE-jart:M::jartsr::/usr/bin/ape:FP'"'"' >/proc/sys/fs/binfmt_misc/register"' >&2
$SUDO sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" || exit $SUDO sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:FP' >/proc/sys/fs/binfmt_misc/register" || exit
echo done >&2 echo done >&2
if [ x"$(cat /proc/sys/fs/binfmt_misc/status)" = xdisabled ]; then if [ x"$(cat /proc/sys/fs/binfmt_misc/status)" = xdisabled ]; then

Binary file not shown.

Binary file not shown.

Binary file not shown.