summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2010-10-07 19:57:13 +0000
committerPacho Ramos <pacho@gentoo.org>2010-10-07 19:57:13 +0000
commitbcffe24c0f4ea9c44489eb9f3cc29bbf6822d65b (patch)
treee1fa482c6d3fff07999776033a6b5e6e70d6f982 /dev-dotnet/pe-format/files
parentRemove old. (diff)
downloadgentoo-2-bcffe24c0f4ea9c44489eb9f3cc29bbf6822d65b.tar.gz
gentoo-2-bcffe24c0f4ea9c44489eb9f3cc29bbf6822d65b.tar.bz2
gentoo-2-bcffe24c0f4ea9c44489eb9f3cc29bbf6822d65b.zip
Remove old.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-dotnet/pe-format/files')
-rw-r--r--dev-dotnet/pe-format/files/pe-format.init49
1 files changed, 0 insertions, 49 deletions
diff --git a/dev-dotnet/pe-format/files/pe-format.init b/dev-dotnet/pe-format/files/pe-format.init
deleted file mode 100644
index 86aff1e7b232..000000000000
--- a/dev-dotnet/pe-format/files/pe-format.init
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/pe-format/files/pe-format.init,v 1.2 2007/03/23 17:01:09 compnerd Exp $
-
-start() {
- ebegin "Registering PE binaries with ${CLR}"
-
- if [[ ! -d /proc/sys/fs/binfmt_misc ]] ; then
- eerror "You need support for \"misc binaries\" in your kernel!"
- eend 1
- fi
-
- if [[ $(mount | grep -c binfmt_misc) -eq 0 ]] ; then
- mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc &> /dev/null
- local result=$?
-
- if [[ $result -ne 0 ]] ; then
- eend $result
- fi
- fi
-
- case "${CLR}" in
- mono)
- echo ':PE:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
- eend 0
- ;;
- ilrun)
- echo ':PE:M::MZ::/usr/bin/ilrun:' > /proc/sys/fs/binfmt_misc/register
- eend 0
- ;;
- *)
- eerror 'Please enter a valid option in /etc/conf.d/pe-format'
- eend 1
- ;;
- esac
-}
-
-stop() {
- ebegin "Unregistering PE binaries"
-
- if [[ -f /proc/sys/fs/binfmt_misc/PE ]] ; then
- echo '-1' > /proc/sys/fs/binfmt_misc/PE
- fi
-
- eend $?
-}
-
-# vim: ts=4 :