Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53448 - Gentoo needs a init script for binfmt configuration
Summary: Gentoo needs a init script for binfmt configuration
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 14:10 UTC by Gustavo Ribeiro Alves
Modified: 2004-06-21 20:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Ribeiro Alves 2004-06-09 14:10:47 UTC
Does gentoo have a init script for setting binfmt_misc? I know all you have to do is add an echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
 or something similar. But I think it might be a good idea to have a file on /etc where you would write something like

DosWin M MZ /usr/bin/wine
Java   M \xca\xfe\xba\xbe /usr/bin/javawrapper
ExecutableJAR E jar /usr/bin/jarwrapper
Applet E html /opt/sun-jdk-1.4.2.04/bin/appletviewer
Applet M <!--applet /opt/sun-jdk-1.4.2.04/bin/appletviewer

The script would then read the file and echo the correct line to /proc/sys/fs/binfmt_misc/register

when you choosed to unload it would send an echo -1 to that file

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-06-21 20:02:52 UTC
use /etc/sysctl.conf ... that's why it exists ...

i use it for my wine registrations :)