Re: [Toybox] service

2015-01-02 Thread Rob Landley
On 01/01/2015 12:03 PM, stephen Turner wrote: On Jan 1, 2015 12:02 PM, Rob Landley r...@landley.net mailto:r...@landley.net wrote: On 01/01/15 08:35, stephen Turner wrote: while doing some searches on scripting i was reminded about service and noticed it wasn't in toybox. Is this a

Re: [Toybox] service

2015-01-02 Thread David Seikel
On Thu, 1 Jan 2015 10:22:46 -0800 Isaac Dunham ibid...@gmail.com wrote: On Thu, Jan 01, 2015 at 09:35:31AM -0500, stephen Turner wrote: while doing some searches on scripting i was reminded about service and noticed it wasn't in toybox. Is this a oversight or not in intended

Re: [Toybox] toybox in Android status

2015-01-02 Thread enh
On Fri, Jan 2, 2015 at 11:20 AM, Rob Landley r...@landley.net wrote: On 01/01/2015 09:57 PM, David Seikel wrote: So if Android is switching to toybox, is my unfinished project to create a toybox installing app now obsolete? There's still stuff to do. In increasing order of difficulty: 1)

Re: [Toybox] service

2015-01-02 Thread Isaac Dunham
On Thu, Jan 01, 2015 at 03:52:17PM -0500, stephen Turner wrote: It doesn't have to be a script, but it does have to be written to match a specific set of rc scripts (the rc scripts are the shell part of the init system; there's OpenRC, the LFS init scripts, the Debian init scripts, the

Re: [Toybox] toybox in Android status

2015-01-02 Thread Rob Landley
On 01/01/2015 03:14 PM, enh wrote: close to switching: cat --- missing -n (though we do now have nl(1)) [patch sent upstream] chown --- bugs with argument parsing [patch sent upstream] cmp --- missing -b, -n. (both dating from the original git import, with no changes since.

Re: [Toybox] toybox in Android status

2015-01-02 Thread Rob Landley
On 01/01/2015 09:57 PM, David Seikel wrote: So if Android is switching to toybox, is my unfinished project to create a toybox installing app now obsolete? There's still stuff to do. In increasing order of difficulty: 1) It's only going into new ones at some point in the future. The installed

Re: [Toybox] service

2015-01-02 Thread Isaac Dunham
On Fri, Jan 02, 2015 at 01:20:11PM +1000, David Seikel wrote: On Thu, 1 Jan 2015 10:22:46 -0800 Isaac Dunham ibid...@gmail.com wrote: On Thu, Jan 01, 2015 at 09:35:31AM -0500, stephen Turner wrote: while doing some searches on scripting i was reminded about service and noticed it

Re: [Toybox] service

2015-01-02 Thread stephen Turner
That's not entirely true. Many years ago I wrote an implementation of runlevel/init.d/SYS V init applets for busybox, aiming for LSB compliance. It included the ability for the actual scripts themselves to be written in any language, and included several ones written in C as busybox

Re: [Toybox] toybox in Android status

2015-01-02 Thread David Seikel
So if Android is switching to toybox, is my unfinished project to create a toybox installing app now obsolete? I was stuck on what to do if busybox is already installed and has symlinks plastered all over the file system. I'm still thinking about how to deal with that. -- A big old stinking

Re: [Toybox] service

2015-01-02 Thread stephen Turner
You will then want to create some files: /etc/inittab # chmod 0644 /etc/init.d/rcS # chmod 0755 /init # chmod 0755; hack because init needs /dev Traditionally, /etc/init.d/rcS ultimately does essentially: for SERVICE in