I assume that init is passed on the kernel command line like
init=/what/ever, right ?
Why not make that INIT=/what/ever, then make this /sbin/init:
main()
{
execl(getenv("INIT"), getenv("INIT"), "other", "args", NULL);
}
Kernel command line args not reckognized by the kernel get put
into the environment of init ..
Mike.
-- They all laughed when I said I wanted to build a joke-telling machine. Well, I showed them! Nobody's laughing *now*! -- acesteves@clix.pt- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/