[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HELP: best place to place binfmt_misc directives?



Bruno Boettcher <bboett@erm1.u-strasbg.fr> writes:

> wanted to set up again some of the misc binary modules capabilities....
> on slackware init i had a rc.local where to put such stuff.... where do i put
> it in debian?

Assuming you're talking about binfmt-misc, create a file in
/etc/init.d called something like local-binfmt.sh, and link to it by

# ln -s ../init.d/local-binfmt.sh /etc/rcS.d/S90local-binfmt.sh

The file would contain something like:

-----
if [ -e /proc/sys/fs/binfmt_misc/register ]; then
    echo ':rexx:M::/*::/usr/bin/regina:' > /proc/sys/fs/binfmt_misc/register
fi
-----

> BTW wouldn't it be neat if the packages beeing susceptible to propose such
> services had a switch to set this functionality on when installing the package?

You could file a Priority: wishlist bug on the package you think
should have this functionality, suggesting they do something like I
put above.

Ultimately, there should probably be another package that manages this 
and provides an `update-binfmt' program.

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/

"Is there anyone who actually believes that USAicans are so modest or
intellectually honest as to be unable to find someone to sue?" - Cameron Laird


Reply to: