summaryrefslogtreecommitdiff
path: root/package/sash/src/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/sash/src/reboot.c')
-rw-r--r--package/sash/src/reboot.c17
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 */
}
-