![]() ![]() |
Jul 26 2005, 01:33 PM
Post
#1
|
|
![]() Group: Members Posts: 12 Joined: 26-July 05 From: Athens & Naples Member No.: 7,700 |
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 |
|
|
|
Jul 27 2005, 02:42 AM
Post
#2
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
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 |
|
|
|
Jul 27 2005, 05:37 AM
Post
#3
|
|
![]() Group: Members Posts: 12 Joined: 26-July 05 From: Athens & Naples Member No.: 7,700 |
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. |
|
|
|
Jul 27 2005, 06:05 AM
Post
#4
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
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 |
|
|
|
Aug 19 2005, 06:48 AM
Post
#5
|
|
![]() Group: Members Posts: 7 Joined: 10-August 05 Member No.: 7,827 |
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 |
|
|
|
Aug 19 2005, 07:51 AM
Post
#6
|
|
![]() Group: Members Posts: 790 Joined: 28-October 03 From: USA Member No.: 792 |
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 |
|
|
|
Aug 19 2005, 03:02 PM
Post
#7
|
|
![]() Group: Members Posts: 715 Joined: 25-July 04 From: .de Member No.: 4,094 |
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 |
|
|
|
Aug 19 2005, 03:12 PM
Post
#8
|
|
![]() Group: Members Posts: 790 Joined: 28-October 03 From: USA Member No.: 792 |
Thanks for checking... and showing *how* it was fixed
|
|
|
|
Aug 19 2005, 03:42 PM
Post
#9
|
|
![]() Group: Members Posts: 715 Joined: 25-July 04 From: .de Member No.: 4,094 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 06:59 AM |