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.
use /etc/sysctl.conf ... that's why it exists ... i use it for my wine registrations :)