summaryrefslogtreecommitdiff
path: root/sysutils/wmshutdown/files/patch-ab
blob: 6d0bc1fe3b8f599d9ca7ff4467a5b882e222048d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- shutdown.c	Sun Dec  1 23:28:23 2002
+++ shutdown.c	Sun Dec  1 23:29:16 2002
@@ -18,7 +18,7 @@
 			FILE *output;
 
 			printf("Rebooting...\n");
-			output = popen("/sbin/shutdown now -r", "r");
+			output = popen("/sbin/shutdown -r now", "r");
 			teste = (char*) fgetc(output);
 			while ((int)teste != EOF) {
 				printf("%c", teste);
@@ -32,7 +32,7 @@
 			FILE *output;
 
 			printf("Halting...\n");
-			output = popen("/sbin/shutdown now -h", "r");
+			output = popen("/sbin/shutdown -h now", "r");
 			teste = (char*) fgetc(output);
 			while ((int)teste != EOF) {
 				printf("%c", teste);