OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: encelo on July 26, 2005, 05:33:28 pm
-
After having installed lirc-modules I've noticed that every time I install a package with ipkg, lirc-modules will be configured again!
Example:
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
-
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
-
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89732\"][{POST_SNAPBACK}][/a][/div]
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.
-
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
-
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
-
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:
#!/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
-
FWIW, the lirc-modules postinst has been fixed in OE by someone already.
pkg_postinst() {
#!/bin/sh
set -e
if [ ! -c $D/dev/lirc ]; then mknod $D/dev/lirc c 61 0; fi
exit 0
-
Thanks for checking... and showing *how* it was fixed
-
Thanks for checking... and showing *how* it was fixed
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92568\"][{POST_SNAPBACK}][/a][/div]
You're welcome