diff options
author | Mike Frysinger <vapier@gentoo.org> | 2017-01-20 13:21:20 -0600 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2017-01-20 13:26:19 -0600 |
commit | 175bcba82218df8e7ad40919b5d45dbcc3d2ac30 (patch) | |
tree | b26a0101c9b1b71df0331a9e108cd41989635d09 /app-emulation/qemu/files/qemu-binfmt.initd.tail | |
parent | dev-python/pylibmc: add py3.5, doc, drop pypy (diff) | |
download | gentoo-175bcba82218df8e7ad40919b5d45dbcc3d2ac30.tar.gz gentoo-175bcba82218df8e7ad40919b5d45dbcc3d2ac30.tar.bz2 gentoo-175bcba82218df8e7ad40919b5d45dbcc3d2ac30.zip |
app-emulation/qemu: generate init.d script from upstream settings
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 +} |