summaryrefslogtreecommitdiffstats
path: root/abs/core/sysvinit/halt-init.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-12-02 18:13:52 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-12-02 18:13:52 (GMT)
commitb0043b3d2e43f154d7a4d48db95ef59f2d504fdd (patch)
tree4e97b5035c6f74b38c7651a7d7e1e6e04ed54a94 /abs/core/sysvinit/halt-init.patch
parent1f1fba61439753f571b1a6d39086143804326d8a (diff)
downloadlinhes_pkgbuild-b0043b3d2e43f154d7a4d48db95ef59f2d504fdd.zip
linhes_pkgbuild-b0043b3d2e43f154d7a4d48db95ef59f2d504fdd.tar.gz
linhes_pkgbuild-b0043b3d2e43f154d7a4d48db95ef59f2d504fdd.tar.bz2
sysvinit: patched to allow reboot/shutdown using binary names of poweroff.init and reboot.init
Diffstat (limited to 'abs/core/sysvinit/halt-init.patch')
-rw-r--r--abs/core/sysvinit/halt-init.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/sysvinit/halt-init.patch b/abs/core/sysvinit/halt-init.patch
new file mode 100644
index 0000000..0885252
--- /dev/null
+++ b/abs/core/sysvinit/halt-init.patch
@@ -0,0 +1,12 @@
+--- src/halt.c.orig 2010-02-26 13:45:49.000000000 +0000
++++ src/halt.c 2010-12-02 17:42:51.000000000 +0000
+@@ -198,6 +198,9 @@
+ if (!strcmp(progname, "reboot")) do_reboot = 1;
+ if (!strcmp(progname, "poweroff")) do_poweroff = 1;
+
++ if (!strcmp(progname, "reboot.init")) do_reboot = 1;
++ if (!strcmp(progname, "poweroff.init")) do_poweroff = 1;
++
+ /*
+ * Get flags
+ */