On Thursday 29 October 2009 11:15:02 Denys Vlasenko wrote: > On Thu, Oct 29, 2009 at 2:40 PM, Detlef Vollmann wrote: > > My initial reaction was 'just don't use busybox init', > > but of course that's not always an option. > > Maybe check whether stdin is a tty, and only then run sh, > > otherwise sleep forever: > ::respawn:/bin/run_sh_if_tty.sh > > where run_sh_if_tty.sh is > > #!/bin/sh > while ! tty >/dev/null 2>&1; do sleep 3600; done > exec sh "$@"
FAQ it ? -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
