diff options
Diffstat (limited to 'app-emulation/qemu/files/qemu-binfmt.initd.tail')
-rw-r--r-- | app-emulation/qemu/files/qemu-binfmt.initd.tail | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app-emulation/qemu/files/qemu-binfmt.initd.tail b/app-emulation/qemu/files/qemu-binfmt.initd.tail new file mode 100644 index 000000000000..7679481929ae --- /dev/null +++ b/app-emulation/qemu/files/qemu-binfmt.initd.tail @@ -0,0 +1,14 @@ + eend 0 +} + +stop() { + # We unregister everything in the "qemu-xxx" namespace. + ebegin "Unregistering qemu-user binaries" + local f + for f in /proc/sys/fs/binfmt_misc/qemu-* ; do + if [ -f "${f}" ] ; then + echo '-1' > "${f}" + fi + done + eend 0 +} |