From 69229e524cde4412eb111180f15e073cc00366d9 Mon Sep 17 00:00:00 2001 From: mirabilos Date: Sat, 18 Nov 2017 12:37:08 +0100 Subject: clean up sash Signed-off-by: mirabilos --- package/sash/src/shutdown.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'package/sash/src/shutdown.c') diff --git a/package/sash/src/shutdown.c b/package/sash/src/shutdown.c index cc5ee8763..52d0530d8 100644 --- a/package/sash/src/shutdown.c +++ b/package/sash/src/shutdown.c @@ -41,7 +41,7 @@ main(argc, argv) printf("Usage: %s [-d delay] -h|-r now\n", progname); exit(0); } - + kill(1, SIGTSTP); sync(); signal(SIGTERM,SIG_IGN); @@ -53,13 +53,12 @@ main(argc, argv) kill(-1, SIGKILL); sync(); sleep(1); - + if (strcmp(argv[1], "-h")==0) { reboot(0xCDEF0123); } else { reboot(0x01234567); } - + exit(0); /* Shrug */ } - -- cgit v1.2.3