On So April 1 2007, Julian Sikorski wrote: > Hi. In my effort to update thinkfinger to 0.3, I have noticed that the > new version requires uinput module to be loaded. My question is, how to > solve thins in rpm? I.e what scriptlets/config files to add so that > uinput would be added to the list of automatically loaded ones upon > install and removed upon erase. I would do the following: In /etc/sysconfig/modules/thinkfinger.modules (needs to be executable): #!/bin/sh /sbin/modprobe uinput &>/dev/null In the spec: %post %{_sysconfdir}/sysconf/modules/%{name}.modules || : %preun rmmod uinput || : /etc/sysconfig/modules/*.modules are executed at boottime, and the scriptlets load and remove the module at the right moment. Regards, Till
Attachment:
pgpPgX28ESgDR.pgp
Description: PGP signature
-- Fedora-maintainers mailing list Fedora-maintainers@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-maintainers
-- Fedora-maintainers-readonly mailing list Fedora-maintainers-readonly@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly