Gentoo Archives: gentoo-embedded

From: Natanael Copa <mlists@××××××.org>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] porting runscript to embedded
Date: Wed, 17 Aug 2005 10:46:40
In Reply to: Re: [gentoo-embedded] porting runscript to embedded by Henrik Brix Andersen
Henrik Brix Andersen wrote:

>On Wed, 2005-08-17 at 12:00 +0200, Natanael Copa wrote: > > >>So far the only problem seems to be that some init.d scripts use >>"killall /path/to/binary" instead of "killall binary". Specifying the >>path does not work with busybox killall. >> >> > >You could specify an sh-wrapper for killall that strips the path (until >this is fixed in the affected init scripts): > >
The question is if it should be "fixed" or if that is the way it is supposed to be.
>killall() { > /usr/sbin/killall `basename $1` >} > >
A wrapper... ofcourse!
>Completely untested, btw :) > >
Yes, it should be /bin/killall when we talk about busybox, but I got the idea. I really liked this. Thank you very much! :) -- gentoo-embedded@g.o mailing list