On 07/09/2004 02:13 PM Wolfgang Grandegger wrote: > On 07/09/2004 02:03 PM Wolfgang Grandegger wrote: >> On 07/06/2004 05:54 PM Philippe Gerum wrote: >>> On Tue, 2004-07-06 at 17:22, Wolfgang Grandegger wrote: >>>> Hi Philippe, >>>> >>>> recent versions of "rtai_load" use the command "file -b ", which does >>>> not exist on my target platform (ELDK). Could we replace it with "ls -l" >>>> which gives the same result? >>>> >>> >>> No "file" in busybox? oh, well... Need to change the regexp, but ok. >>> I'll fix it asap. >> >> Thanks for the fix. Somebody else reported, that there are still a >> problems with the "type" and "sudo" commands under busybox (which I >> haven't used yet). Therefore I propose the following replacement in >> rtai-load: >> >> if test \! "x`sudo -V > /dev/null 2>&1`" = x; then >> sudo=sudo >> fi > > Well, this test does not work, sorry. I will find a better fix.
... like the following: sudo -V > /dev/null 2>&1 && sudo=sudo Wolfgang.
