summaryrefslogblamecommitdiffstats
path: root/display/qingy/shutdown.patch
blob: 5a92f2eaa54fcbe1988554dae406ee6161ebe9a2 (plain) (tree)




















                                                                                                                                       



                                                                           



                                                                                             
                                                                                              




                                                                                             
                                                                                              


                                                                               
diff -Naur qingy-0.9.1/src/DirectFB/directfb_mode.c qingy-0.9.1-fixed/src/DirectFB/directfb_mode.c
--- qingy-0.9.1/src/DirectFB/directfb_mode.c	2006-08-21 19:06:39.000000000 +0200
+++ qingy-0.9.1-fixed/src/DirectFB/directfb_mode.c	2006-10-09 15:49:16.000000000 +0200
@@ -438,7 +438,7 @@
 			primary->DrawString (primary, "shutting down system...", -1, screen_width / 2, screen_height / 2, DSTF_CENTER);
 			primary->Flip (primary, NULL, 0);
 		}
-		execl ("/sbin/shutdown", "/sbin/shutdown", "-h", "now", (char*)NULL);
+		execl ("/sbin/shutdown", "/sbin/shutdown", "-qh", "now", (char*)NULL);
 	}
   if (action == DO_REBOOT)
 	{
@@ -447,7 +447,7 @@
 			primary->DrawString (primary, "rebooting system...", -1, screen_width / 2, screen_height / 2, DSTF_CENTER);
 			primary->Flip (primary, NULL, 0);
 		}
-		execl ("/sbin/shutdown", "/sbin/shutdown", "-r", "now", (char*)NULL);
+		execl ("/sbin/shutdown", "/sbin/shutdown", "-qr", "now", (char*)NULL);
 	}
   
   /* we should never get here unless call to /sbin/shutdown fails */
diff -Naur qingy-0.9.1/src/main.c qingy-0.9.1-fixed/src/main.c
--- qingy-0.9.1/src/main.c	2006-08-04 07:52:17.000000000 +0200
+++ qingy-0.9.1-fixed/src/main.c	2006-10-06 11:09:06.000000000 +0200
@@ -390,12 +390,12 @@
 		case EXIT_SHUTDOWN_R:
 			if (username) memset(username, '\0', sizeof(username));
       if (password) memset(password, '\0', sizeof(password));
-			execl ("/sbin/shutdown", "/sbin/shutdown", "-r", "now", (char*)NULL);
+			execl ("/sbin/shutdown", "/sbin/shutdown", "-qr", "now", (char*)NULL);
 			break;
 		case EXIT_SHUTDOWN_H:
 			if (username) memset(username, '\0', sizeof(username));
       if (password) memset(password, '\0', sizeof(password));
-			execl ("/sbin/shutdown", "/sbin/shutdown", "-h", "now", (char*)NULL);
+			execl ("/sbin/shutdown", "/sbin/shutdown", "-qh", "now", (char*)NULL);
 			break;
 		case EXIT_SLEEP:
 			if (username) memset(username, '\0', sizeof(username));