diff options
author | mirabilos <tg@mirbsd.org> | 2017-11-18 12:37:08 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-11-19 09:09:27 +0100 |
commit | 69229e524cde4412eb111180f15e073cc00366d9 (patch) | |
tree | bbe1a9e2f1157ca23b233fcf2d73a8c1f229d4a6 /package/sash/src/reboot.c | |
parent | d68e2217231db1a738374dbff846a5612be621a0 (diff) |
clean up sash
Signed-off-by: mirabilos <tg@mirbsd.org>
Diffstat (limited to 'package/sash/src/reboot.c')
-rw-r--r-- | package/sash/src/reboot.c | 17 |
1 files changed, 1 insertions, 16 deletions
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 */ } - |