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/reboot.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'package/sash/src/reboot.c') diff --git a/package/sash/src/reboot.c b/package/sash/src/reboot.c index ec464a041..479673a35 100644 --- a/package/sash/src/reboot.c +++ b/package/sash/src/reboot.c @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) int delay = 0; /* delay in seconds before rebooting */ int rc; int force = 0; - + while ((rc = getopt(argc, argv, "h?d:f")) > 0) { switch (rc) { case 'd': @@ -54,20 +54,6 @@ int main(int argc, char *argv[]) if(delay > 0) sleep(delay); -#ifdef CONFIG_DISKtel - printf("unmounting /home\n"); - if(umount("/home") != 0){ - printf("unmounting failed!!!\n"); - } -#endif - -#ifdef CONFIG_USER_FLATFSD_FLATFSD - if (!force) { - /* Ask flatfsd to reboot us safely */ - execlp("flatfsd", "flatfsd", "-b", NULL); - /* if this returns, then force a reboot */ - } -#endif kill(1, SIGTSTP); sync(); @@ -83,4 +69,3 @@ int main(int argc, char *argv[]) reboot(0x01234567); exit(0); /* Shrug */ } - -- cgit v1.2.3