Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c4fca917232e62c837ed7647dd96a04b71326288
commit c4fca917232e62c837ed7647dd96a04b71326288 Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Wed Feb 27 00:35:24 2008 +0100 mono-1.2.6-2-i686 - no relbump yet - rc.mono: cleanup, we no longer have to mount anything manually. also added status command diff --git a/source/devel/mono/FrugalBuild b/source/devel/mono/FrugalBuild index 4873128..2bc78da 100644 --- a/source/devel/mono/FrugalBuild +++ b/source/devel/mono/FrugalBuild @@ -17,7 +17,7 @@ source=(http://www.go-mono.com/sources/$pkgname/$pkgname-$pkgver.tar.bz2 rc.mono mono-1.2.6-threads-types-private-prototypes.patch) Fconfopts="$Fconfopts --with-tls=__thread --with-libgdiplus=installed" sha1sums=('f51f2e14d05313dba4b2d3fd5a47a9a3361ebeae' \ - '143399121fac3d5dc47fb07e8dec4ded182a14bd' \ + '70d030d677bc38c90ccd208f5cfea4a7b244e085' \ '6c19f98462d7bb1ecba79a3ad284ea02a1eac2ec' \ 'd310d55923d4f3a8db699b64d6f5ac536d9f9a39') diff --git a/source/devel/mono/rc.mono b/source/devel/mono/rc.mono index 288b16f..80b702f 100644 --- a/source/devel/mono/rc.mono +++ b/source/devel/mono/rc.mono @@ -17,26 +17,34 @@ actions=(start stop restart) rc_start() { msg $"Registering .NET IL binaries with mono" - if [ -d /proc/sys/fs/binfmt_misc ] ; then - mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc - echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register - ok $? - else + if ls /proc/sys/fs/binfmt_misc/CLR &>/dev/null; then ok 999 + return 1 + fi + modprobe binfmt_misc + echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register + ok $? +} + +rc_status() +{ + status_msg $"Mono binary format handlers are" + if ! ls /proc/sys/fs/binfmt_misc/CLR &>/dev/null; then + ok 998 + else + ok 997 fi } rc_stop() { msg $"Unregistering .NET IL binaries" - if [ -f /proc/sys/fs/binfmt_misc/CLR ] ; then - echo '-1' > /proc/sys/fs/binfmt_misc/CLR - ok $? - else + if ! ls /proc/sys/fs/binfmt_misc/CLR &>/dev/null; then ok 999 + return 1 fi + echo '-1' > /proc/sys/fs/binfmt_misc/CLR + ok $? } rc_exec $1 - -# vim: ft=sh _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
