From 09f82eb4d39ea43e60d60ff9094328ca77fa094f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 7 Feb 2020 21:11:40 +0200 Subject: [PATCH] docs: update --- bin/init.c | 25 ------------------------- bin/poweroff | 1 - bin/reboot | 1 - 3 files changed, 27 deletions(-) delete mode 100644 bin/init.c delete mode 100755 bin/poweroff delete mode 100755 bin/reboot diff --git a/bin/init.c b/bin/init.c deleted file mode 100644 index cbbc379..0000000 --- a/bin/init.c +++ /dev/null @@ -1,25 +0,0 @@ -// Tiny init by Rich Felker. -// See: https://ewontfix.com/14/ - -#define _POSIX_C_SOURCE 200809L - -#include -#include -#include - -int main(void) { - sigset_t set; - - if (getpid() != 1) return 1; - - sigfillset(&set); - sigprocmask(SIG_BLOCK, &set, 0); - - if (fork()) for (;;) wait(&(int){0}); - - sigprocmask(SIG_UNBLOCK, &set, 0); - - setsid(); - setpgid(0, 0); - return execve("/lib/init/rc.boot", (char *[]){0}, (char *[]){0}); -} diff --git a/bin/poweroff b/bin/poweroff deleted file mode 100755 index 06ac644..0000000 --- a/bin/poweroff +++ /dev/null @@ -1 +0,0 @@ -#!/lib/init/rc.shutdown poweroff diff --git a/bin/reboot b/bin/reboot deleted file mode 100755 index dd0c88e..0000000 --- a/bin/reboot +++ /dev/null @@ -1 +0,0 @@ -#!/lib/init/rc.shutdown reboot