#!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: $ start() { ebegin "Making .NET binaries use /usr/bin/mono" if [ ! -d /proc/sys/fs/binfmt_misc ]; then eerror "You need support for \"misc binaries\" in your kernel!" exit 1 fi mount | grep -q binfmt_misc if [ $? != 0 ]; then mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc if [ $? != 0 ]; then eend 1 exit 1 fi fi echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register eend 0 }