From 1e5a6f40e5c24c77bfcc7ac82c42053fd6931132 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 3 Nov 2008 16:11:29 +0000 Subject: We shouldn't run halt.sh anymore. --- src/rc/rc.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/rc') 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; } -- cgit v1.2.3