diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-06 21:48:27 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-06 21:52:40 -0700 |
| commit | 0c212a89be0a9e78f0e8086520ac826bfc4a91f5 (patch) | |
| tree | d1678f5c06baa4c986aa8da606831af84cd38cc5 | |
| parent | 8c7cd2ac251ae4d335c3e4b208a1e07708aa3d81 (diff) | |
sinit: Run scripts in /etc
| -rw-r--r-- | core/sinit/config.h | 5 | ||||
| -rw-r--r-- | core/sinit/gen.rc | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/core/sinit/config.h b/core/sinit/config.h new file mode 100644 index 00000000..3d2da6fc --- /dev/null +++ b/core/sinit/config.h @@ -0,0 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + +static char *const rcinitcmd[] = { "/etc/rc.init", NULL }; +static char *const rcrebootcmd[] = { "/etc/rc.shutdown", "reboot", NULL }; +static char *const rcpoweroffcmd[] = { "/etc/rc.shutdown", "poweroff", NULL }; diff --git a/core/sinit/gen.rc b/core/sinit/gen.rc index 66d904fc..47e86432 100644 --- a/core/sinit/gen.rc +++ b/core/sinit/gen.rc @@ -1,6 +1,5 @@ -cflags -Wall -Wextra -I '$outdir' -build '$outdir'/config.h copy '$srcdir'/config.def.h -cc sinit.c '||' '$outdir'/config.h +cflags -Wall -Wextra -I '$dir' +cc sinit.c link sinit sinit.c.o file bin/sinit '$outdir'/sinit 755 |
