#!/bin/sh
# https://www.altlinux.org/Ports/arm/BuildHowto
modprobe binfmt_misc
sleep 0.1
[ -d /proc/sys/fs/binfmt_misc ] || exit 1
echo ":armh:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/.host/qemu-arm:" > /proc/sys/fs/binfmt_misc/register
echo 32768 > /proc/sys/vm/mmap_min_addr
