clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: May 31 2006,23:03 |
|
EDIT: What was I thinking? /usr/games is in the PATH variable.
I made a few unc extensions and I noticed a problem. I made a gcc1-with-libs.unc that worked fine, but my gnu-utils.unc didn't work. I think there may be a problem if you overwrite a link that already exists on the system. This may only occur the second time you load and unload an extension.
Try this: create a temporary directory called myapp and another called myapp/bin. Create a shell script called myapp/bin/dd, it can do anything. Mine printed out a test string using echo. chmod 777 on the new dd and test it to make sure it works. Now create a unc extension of this by running:
mkisofs -R -hide-rr-moved -cache-inodes -pad myapp/ | create_compressed_fs - 65536 > myapp.unc
After you load this extension with mydsl-load myapp.unc, the dd command doesn't work. neither the new one nore the old one. Run mydsl-load myapp.unc again and the old dd is back and functioning. I'm not sure why this happens, but when you try to make a gnu-utils.unc, it overwrites really important busybox funcions which the keeps you from unloading it (I think it got ride of really base level programs like xargs, sleep, and cat).
This was kind of a sporadic problem which I'm hoping is something I did wrong. Sometimes it looks like it worked, sometimes it doesn't.
|