Am 01.07.2011 09:41, schrieb Ed W: > On 30/06/2011 16:19, Gilles wrote: >> However when I run /bin/reboot, I get this: >> ================ >> root:/bin> ./reboot >> reboot: No such file or directory >> ================ > > I might be on the wrong track, but just a heads up: > > You get this error message when you run some script which a shebang that > points to (say) bash (#!/bin/bash). > > So it's possible that reboot binary is trying to execute some shell > script which either doesn't exist or has a broken reference to > bash/perl/python or some other interpretor which isn't installed. > > This has baffled me enough in the course of building my little distro > that I'm starting to remember what it means when I see it now. > Confusingly it can occur a few layers down in the execution order and be > tricky to figure out... >
The code will happily print that message also if a depending shared library is not found (it can drive you nuts). Also having a \r\n behind #!/bin/sh is a nice source. re, wh _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox