We shouldn't run halt.sh anymore.

This commit is contained in:
Roy Marples 2008-11-03 16:11:29 +00:00
parent 0af7d5bc20
commit 1e5a6f40e5

View File

@ -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;
}