support gentoo's binfmt initscript

This commit is contained in:
parazyd 2017-05-15 15:16:03 +02:00
parent 2bbc13f6d3
commit 4da2afd919
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 0 deletions

2
sdk
View File

@ -56,6 +56,8 @@ load() {
## initialize binfmt_misc if not already, needed to run qemu
if [[ -f /etc/init.d/binfmt-support ]]; then
sudo /etc/init.d/binfmt-support restart
elif [[ -f /etc/init.d/qemu-binfmt ]]; then
sudo /etc/init.d/qemu-binfmt restart
else
[[ -d /proc/sys/fs/binfmt_misc ]] \
|| sudo modprobe binfmt_misc