diff options
-rw-r--r-- | src/rc/rc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index 995cc910..abc0285f 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -73,7 +73,6 @@ const char rc_copyright[] = "Copyright (c) 2007-2008 Roy Marples"; #define INITSH RC_LIBDIR "/sh/init.sh" #define INITEARLYSH RC_LIBDIR "/sh/init-early.sh" -#define HALTSH RC_INITDIR "/halt.sh" #define SHUTDOWN "/sbin/shutdown" #define SULOGIN "/sbin/sulogin" @@ -1066,18 +1065,5 @@ main(int argc, char **argv) if (regen && strcmp(runlevel, bootlevel) == 0) unlink(RC_DEPTREE_CACHE); -#ifdef __linux__ - /* Run our halt script if it exists - * We only do this for compat with Gentoo sysvinit which - * should run halt.sh itself. */ - if (exists(HALTSH)) { - if (strcmp(runlevel, RC_LEVEL_SHUTDOWN) == 0) { - execl(HALTSH, HALTSH, (char *) NULL); - eerrorx("%s: unable to exec `%s': %s", - applet, HALTSH, strerror(errno)); - } - } -#endif - return EXIT_SUCCESS; } |