Skip to contentSkip to conversation

crda: fix udev rule

PATCH Applied Javier Viguera 3 participants 3 messages Mar 12, 2014 – Mar 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crda: fix udev rule

The SBINDIR variable in makefile's install rule needs to have a trailing slash so the path to the 'crda' binary in the udev rule is correct.

Otherwise the udev rule has a wrong path:

KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/usr/sbincrda"

and at runtime udev complains:

failed to execute '/usr/sbincrda'

when a regulatory domain event is triggered.

---
 meta-networking/recipes-connectivity/crda/crda_1.1.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/crda/crda_1.1.3.bb +1 -1
index bee3e826d9a8..0bb899860bc4 100644
@@ -24,7 +24,7 @@ do_compile() {
 }
 
 do_install() {
-    oe_runmake SBINDIR=${sbindir} install
+    oe_runmake SBINDIR=${sbindir}/ install
 
     install -d ${D}${libdir}/crda/
 
Acked-by on v1 1/1
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Javier Viguera schreef op 12-03-14 16:27:

Quoted 5 lines

The SBINDIR variable in makefile's install rule needs to have a trailing slash so the path to the 'crda' binary in the udev rule is correct.

Otherwise the udev rule has a wrong path:

Quoted 8 lines

KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/usr/sbincrda"

and at runtime udev complains:

failed to execute '/usr/sbincrda'

when a regulatory domain event is triggered.

That explains a lot :)

Quoted 12 lines

meta-networking/recipes-connectivity/crda/crda_1.1.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

(quoted diff) +0 -0

b/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb index bee3e826d9a8..0bb899860bc4 100644 --- a/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb +++ b/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb @@ -24,7 +24,7 @@ do_compile() { }

Quoted 6 lines

do_install() { - oe_runmake SBINDIR=${sbindir} install + oe_runmake
SBINDIR=${sbindir}/ install

install -d ${D}${libdir}/crda/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFTIW3DMkyGM64RGpERAocGAKCiI+ynx1m6Il+BsO6/MzbF9OkHigCfbzN6 HaDitNRN4Xl7pLk1AAlBG5E=
=G2ib
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Javier Viguera

Merged, thanks.
-J.

Quoted 33 lines · [[meta-networking] crda: fix udev rule] On 14.03.12 (Wed 16:27) Javier Viguera…

The SBINDIR variable in makefile's install rule needs to have a trailing slash so the path to the 'crda' binary in the udev rule is correct.

Otherwise the udev rule has a wrong path:

KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/usr/sbincrda"

and at runtime udev complains:

failed to execute '/usr/sbincrda'

when a regulatory domain event is triggered.

---
meta-networking/recipes-connectivity/crda/crda_1.1.3.bb | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/crda/crda_1.1.3.bb +1 -1
index bee3e826d9a8..0bb899860bc4 100644
@@ -24,7 +24,7 @@ do_compile() {
 }
 
 do_install() {
-    oe_runmake SBINDIR=${sbindir} install
+    oe_runmake SBINDIR=${sbindir}/ install
 
     install -d ${D}${libdir}/crda/
 
Signature · 2 lines
-Joe MacDonald.
:wq