Help - Search - Members - Calendar
Full Version: Configuring Lirc-modules For Ever! (ipkg-issue)
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Angstrom & OpenZaurus
encelo
After having installed lirc-modules I've noticed that every time I install a package with ipkg, lirc-modules will be configured again!


Example:
CODE
root@neutrino:/home/encelo# ipkg install findutils_4.1.20-r1_arm.ipk
Installing findutils (4.1.20-r1) to root...
Configuring findutils
Configuring lirc-modules
mknod: `/dev/lirc': File exists
postinst script returned status 1
ERROR: lirc-modules.postinst returned 1
lardman
This happens because the postinst script returned 1 (failed). It will try to run the script after every install until it returns 0 (success).

Take a look at the script and see why it failed (looks like it'd trying to mknod, but it already exists) - I'd remove the node and let it recreate it itself, then it should work ok. You could also edit the status file and set it to installed.


Si
encelo
QUOTE(lardman @ Jul 27 2005, 12:42 PM)
Take a look at the script and see why it failed (looks like it'd trying to mknod, but it already exists) - I'd remove the node and let it recreate it itself, then it should work ok. You could also edit the status file and set it to installed.
*

Nothing changes if I remove the node and let it recreate it, I think I'm going to edit the status file to force it as installed.
lardman
Something else in the script may have failed then, that might just happen to be a random bit of text which it outputs.

The other alternative is to edit the script so that it returns 0 anyway,


Si
ajaygautam
The same has started to bug me too. removing lirc-modules seem to solve the annoying messages. reinstall did not help either.

A better solution would be really appreciated.

Thanks

Ajay
Greg2
QUOTE(lardman @ Jul 27 2005, 10:05 AM)
The other alternative is to edit the script so that it returns 0 anyway,

@lardman or any OE scripters,
There are several users having problems with this so I will paste the postinst here:
CODE
#!/bin/sh
mknod /dev/lirc c 61 0
if [ -n $D ]; then exit 1; fi

Please note that /dev/lirc does exist and I have installed lirc and irk succesfully on my collie but do not have a keyboard to test it.

Can they simply change the exit1 to exit 0 ? If not what? For a temporary fix I could build a new ipk with the repaired/hacked postinst.

I'm asking this because it seems to be the main problem with users getting their irk installed and working in many of the threads on this board.

I can find no bugs reported in Bugzilla from searching lirc or irk so I guess it should be reported?

Thanks,

Greg
CoreDump
FWIW, the lirc-modules postinst has been fixed in OE by someone already.
CODE
pkg_postinst() {
#!/bin/sh
set -e
if [ ! -c $D/dev/lirc ]; then mknod $D/dev/lirc c 61 0; fi
exit 0
Greg2
Thanks for checking... and showing *how* it was fixed smile.gif
CoreDump
QUOTE(Greg2 @ Aug 20 2005, 01:12 AM)
Thanks for checking... and showing *how* it was fixed smile.gif
*


You're welcome smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.