morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 30149bcb1da97b1526f967679cdfeb73005875fb
parent 64445f446fc11e5e7b083229e84f6ff71788c169
Author: sin <sin@2f30.org>
Date:   Wed,  5 Feb 2014 18:27:35 +0000

Change paths for rc scripts

Diffstat:
Mstuff/sinit.c | 16+++-------------
1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/stuff/sinit.c b/stuff/sinit.c @@ -59,7 +59,7 @@ main(void) sigprocmask(SIG_UNBLOCK, &set, 0); - spawn("/bin/sh", (char *[]){ "sh", "-c", "/etc/rc", NULL }); + spawn("/bin/rc", (char *[]){ "rc", NULL }); unlink(fifopath); umask(0); @@ -85,23 +85,13 @@ main(void) static void cmdpoweroff(const Arg *arg) { - spawn("/bin/sh", (char *[]){ - "sh", - "-c", - "/etc/rc.shutdown poweroff", - NULL - }); + spawn("/bin/rc.shutdown", (char *[]) { "rc", "poweroff", NULL }); } static void cmdreboot(const Arg *arg) { - spawn("/bin/sh", (char *[]){ - "sh", - "-c", - "/etc/rc.shutdown reboot", - NULL - }); + spawn("/bin/rc.shutdown", (char *[]) { "rc", "reboot", NULL }); } static void