defaultenv: Convert init script to C
It's hard to get more complicated things right in hush. This commit
converts the /env/bin/init script to C code. With this we get a better
error handling and better control what is being done.

If /env/bin/init exists in the environment then it is still executed
instead of the corresponding C code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5455198 commit 90df2a955e3c66fee2c59f67d9274e6a9addd9ce
@Sascha Hauer Sascha Hauer authored on 25 Feb 2019
Showing 2 changed files
View
common/startup.c
View
defaultenv/defaultenv-2-base/bin/init 100644 → 0