| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 # Copies all logs, screen-shots, crash dumps to Downloads folder. | 7 # Copies all logs, screen-shots, crash dumps to Downloads folder. |
| 8 # Help information about script usage. | 8 # Help information about script usage. |
| 9 | 9 |
| 10 . /usr/lib/shflags | 10 . /usr/lib/shflags |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 fi | 95 fi |
| 96 | 96 |
| 97 # Reboot after deleting all files. | 97 # Reboot after deleting all files. |
| 98 echo "Rebooting system after clean up in 1 minute" | 98 echo "Rebooting system after clean up in 1 minute" |
| 99 sudo shutdown -r 1 | 99 sudo shutdown -r 1 |
| 100 else | 100 else |
| 101 echo "Logs and dumps are copied but not deleted." | 101 echo "Logs and dumps are copied but not deleted." |
| 102 echo "To clear all logs, run the script with --delete flag." | 102 echo "To clear all logs, run the script with --delete flag." |
| 103 echo "For all flag options, run the script with --help or -h flag." | 103 echo "For all flag options, run the script with --help or -h flag." |
| 104 fi | 104 fi |
| OLD | NEW |