aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-11-03 16:11:29 +0000
committerRoy Marples <roy@marples.name>2008-11-03 16:11:29 +0000
commit1e5a6f40e5c24c77bfcc7ac82c42053fd6931132 (patch)
treef495ca25a3fe151aa976feef9dbead4485ba7e73 /src
parent0af7d5bc204cd6b7d03f22aacf4072c5f526c0ee (diff)
We shouldn't run halt.sh anymore.
Diffstat (limited to 'src')
-rw-r--r--src/rc/rc.c14
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;
}