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

Re: Converting shell script to RPM



On Mon, 09 Jul 2001 12:39:58 -0500, Timur Tabi wrote:

>1) The installer needs to locate the current /lib/modules directory.
>The shell script uses this code to set a variable called LIBMODDIR:
>
>LIBMODDIR=/lib/modules/`uname -r`
>
>And then copies files like this:
>
>(cd physalloc; make && cp physalloc.o $LIBMODDIR)

The solution I saw with the Intel network drivers was to make the RPM
kernel-version-specific. One had to build a different RPM for each
kernel version desired.

An alternative would be to install the drivers to
/lib/modules/[package-name+version] and symlink to them from the
current kernel module directory in a %post script.

Ken
mailto:shiva@well.com
http://www.sewingwitch.com/ken/
[If answering a mailing list posting, please don't cc me your reply. I'll take my answer on the list.]






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