Le 2001.01.16 15:25:13 +0400, Chmouel Boudjnah a écrit :
> Guillaume Rousse <[EMAIL PROTECTED]> writes:
>
> > Ok for loading the module, but not for processing a cat something >
> > somewhere instruction, i think ?
>
> egrep -q "^something" /etc/modules || echo something >> /etc/modules
>
> in %post
I think there is miscomprehension here.
Firstly, the starting script (not the rpm installation script) needs to
execute this :
echo ':Java:M::\xca\xfe\xba\xbe::/usr/local/bin/javawrapper:' >
/proc/sys/fs/binfmt_misc/register
echo ':Applet:E::html::/usr/bin/appletviewer:' >
/proc/sys/fs/binfmt_misc/register
So, i'l not sure /etc/modules is the right place. So, which is the correct
script for this ?
Secondly, i need to insert those lines into the correct script when
installing the rpm. Is this correct in %post ?
egrep -q "^blabla_with_all_correctly_escaped_characters" /etc/right_place
|| echo "blabla_with_all_correctly_escaped_characters" >> /etc/right_place
Thirdly, i need to remove those lines. Is this correct in %postun ?
sed -e 's/^blabla_with_all_correctly_escaped_characters"//' <
/etc/right_place > /etc/right_place.tmp
mv /etc/right_place.tmp /etc/right_plac
>
> > BTW, i found 4 ie-floppy lines in my own /etc/modules. Is is really
> > necessary/wanted :-) ?
>
> dunno, install group ?
developement & expert.
--
Guillaume Rousse
Murphy's law : If anything can go wrong, it will.
O'Tool's commentary : Murphy was an optimist.