* [PATCH] rtcwake: pass -h to shutdown
@ 2013-04-24 3:23 Mike Frysinger
2013-04-25 7:48 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2013-04-24 3:23 UTC (permalink / raw)
To: util-linux-ng
The sysvinit shutdown requires you use -h when using -H or -P.
Other inits just don't seem to care.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
sys-utils/rtcwake.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c
index f2efc87..eedf78d 100644
--- a/sys-utils/rtcwake.c
+++ b/sys-utils/rtcwake.c
@@ -569,13 +569,14 @@ int main(int argc, char **argv)
dryrun = 1; /* to skip disabling alarm at the end */
} else if (strcmp(suspend, "off") == 0) {
- char *arg[4];
+ char *arg[5];
int i = 0;
if (verbose)
printf(_("suspend mode: off; executing %s\n"),
_PATH_SHUTDOWN);
arg[i++] = _PATH_SHUTDOWN;
+ arg[i++] = "-h";
arg[i++] = "-P";
arg[i++] = "now";
arg[i] = NULL;
--
1.8.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-25 7:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 3:23 [PATCH] rtcwake: pass -h to shutdown Mike Frysinger
2013-04-25 7:48 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox