Active Topics

 


Reply
Thread Tools
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#1
I've compiled module-init-tools-3.3-pre1 for OS2008, mainly because I wanted a working modprobe. I've created a .deb, but I have to install it with dpkg --force-conflicts due to the conflicts with busybox.

Is there a way to create the control file so dpkg or apt does this automatically?
__________________
My Mac Mini runs Kubuntu
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#2
Not that I know of. The control file fields are described here: http://www.debian.org/doc/debian-pol...rolfields.html

A workaround could be to install the conflicting files in /usr/local, and set /usr/local/{bin,sbin} first in the PATH in your .profile file.

Another workaround could be to call your file modprobe.new, and include a post-inst script which renames the old one and either symlinks or renames the new one (symlink is probably better), and a postrm (or prerm) script which does the opposite.

(BTW I though the reason modprobe (the installed one) didn't work was because of a missing depmod? Which, IIRC, needs Perl to work? Something like that?)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.

Last edited by TA-t3; 2007-12-06 at 13:03.
 
JeffElkins's Avatar
Posts: 273 | Thanked: 15 times | Joined on Oct 2007
#3
Originally Posted by TA-t3 View Post
Not that I know of. The control file fields are described here: http://www.debian.org/doc/debian-pol...rolfields.html

(BTW I though the reason modprobe (the installed one) didn't work was because of a missing depmod? Which, IIRC, needs Perl to work? Something like that?)
Thanks for the reply. I've played with post* scripts, but I was hoping for some magic control file-fu I hadn't stumbled across

I wasn't aware of any perl dependency, but thus far, it all works well. I experimented with nfs and smbfs. An initial depmod was required for modules.dep creation.

Code:
root@Nokia-N800-44-4 /root # modprobe nfs
root@Nokia-N800-44-4 /root # modprobe smbfs
root@Nokia-N800-44-4 /root # lsmod
Module                  Size  Used by
smbfs 64092 0 - Live 0xbf0a8000
nfs 122464 0 - Live 0xbf089000
lockd 63992 1 nfs, Live 0xbf078000
sunrpc 158648 2 nfs,lockd, Live 0xbf050000
ext3 107304 2 - Live 0xbf0d2000
jbd 51592 1 ext3, Live 0xbf0c4000
mbcache 7108 1 ext3, Live 0xbf0c1000
g_file_storage 27560 0 - Live 0xbf0b9000
cx3110x 56200 0 - Live 0xbf041000
umac 258788 1 cx3110x, Live 0xbf000000 (P)
The tools live in /usr/sbin.
__________________
My Mac Mini runs Kubuntu
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:14.