modprobe: invalid lines in etc/modutils/hostap_cs.conf?
In etc/modutils/hostap_cs.conf from hostap-conf_1.0 find lines like this:
| pcmcia:m0156c0002f06fn00pfn00pa1CADD3E5pbE697636Cpc7A5BFCF1pd00000000 hostap_cs
/sbin/modprobe.24 does not like lines like this in /etc/modules.conf. Forgive me my ignorance, but to my (limited) knowledge the above line does not look like a valid entry in /etc/modules.conf. Or is this something requireing a 2.6 kernel?
Cheers,
Martin
Signature · 3 lines
----------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Wenn es Dir gut geht, mach Dir keine Sorgen, es wird vor�bergehen.
Dnia piątek, 24 kwietnia 2009 o 11:29:13 Martin Dietze napisał(a):
Quoted 1 line
In
etc/modutils/hostap_cs.conffrom hostap-conf_1.0 find lines like
this:
Quoted 7 lines
| pcmcia:m0156c0002f06fn00pfn00pa1CADD3E5pbE697636Cpc7A5BFCF1pd000000 |00
hostap_cs
/sbin/modprobe.24does not like lines like this in/etc/modules.conf. Forgive me my ignorance, but to my (limited) knowledge the above line does not look like a valid entry in/etc/modules.conf. Or is this something requireing a 2.6 kernel?
That was done for 2.6 kernel.
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Quoted 1 line · Marcin Juszkiewicz
That was done for 2.6 kernel.
... which means that we could actually make this configuration file kernel version dependent and provide none or a different version of it for 2.4 kernels? Actually in my case the file "just comes with" the hostap-conf package through a different dependency; i.e. the _cs configuration is not used at all.
Cheers,
Martin
Signature · 6 lines
----------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Attachment? See: http://piology.org/ILOVEYOU-Signature-FAQ.html begin LOVE-LETTER-FOR-YOU.txt.vbs I am a signature virus I am very dangerous. Distribute me until the bitter end
Quoted 7 lines · Martin Dietze
Quoted 1 line · Marcin Juszkiewicz
That was done for 2.6 kernel.
... which means that we could actually make this configuration file kernel version dependent and provide none or a different version of it for 2.4 kernels? Actually in my case the file
How about this patch?
Quoted 1 line
---------- SNIP ----------
recipes/hostap/hostap-conf_1.0.bb +6 -3
@@ -7,20 +7,23 @@ PACKAGE_ARCH = "all" PR = "r9" SRC_URI = "file://hostap_cs.conf \ - file://hostap_cs.modalias \ file://hostap_cs.conf-upstream" +SRC_URI_append = '${@base_conditional("KERNEL_MAJOR_VERSION", "2.6", " file://hostap_cs.modalias ", "",d)}' + do_compile() { } do_install() { install -d ${D}${sysconfdir}/pcmcia - install -d ${D}${sysconfdir}/modutils install -m 0644 ${WORKDIR}/hostap_cs.conf-upstream ${D}${sysconfdir}/pcmcia/hostap_cs.conf cat ${WORKDIR}/hostap_cs.conf >>${D}${sysconfdir}/pcmcia/hostap_cs.conf - install -m 0644 ${WORKDIR}/hostap_cs.modalias ${D}${sysconfdir}/modutils/hostap_cs.conf + if [ -r ${WORKDIR}/hostap_cs.modalias ]; then + install -d ${D}${sysconfdir}/modutils + install -m 0644 ${WORKDIR}/hostap_cs.modalias ${D}${sysconfdir}/modutils/hostap_cs.conf + fi } pkg_postinst () {
Quoted 1 line
---------- SNIP ----------
Cheers,
Martin
Signature · 4 lines
----------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Wie verhindert man, dass einem die Geige gestohlen wird? Man legt sie in einen Bratschenkasten...