| 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 # This attempts to guide linux users through the process of putting a recovery | 7 # This attempts to guide linux users through the process of putting a recovery |
| 8 # image onto a removeable USB drive. | 8 # image onto a removeable USB drive. |
| 9 # | 9 # |
| 10 # We may not need root privileges if we have the right permissions. | 10 # We may not need root privileges if we have the right permissions. |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 choose_drive | 759 choose_drive |
| 760 | 760 |
| 761 # Be sure | 761 # Be sure |
| 762 dev_desc=$(get_devinfo "$user_choice") | 762 dev_desc=$(get_devinfo "$user_choice") |
| 763 fi | 763 fi |
| 764 echo " | 764 echo " |
| 765 Is this the device you want to put the recovery image on? | 765 Is this the device you want to put the recovery image on? |
| 766 | 766 |
| 767 $dev_desc | 767 $dev_desc |
| 768 " | 768 " |
| 769 prompt "You must enter 'YES' to continue: " | 769 prompt "You must enter 'YES' (all uppercase) to continue: " |
| 770 read tmp | 770 read tmp |
| 771 if [ "$tmp" != "YES" ]; then | 771 if [ "$tmp" != "YES" ]; then |
| 772 quit | 772 quit |
| 773 fi | 773 fi |
| 774 | 774 |
| 775 # Be very sure | 775 # Be very sure |
| 776 echo " | 776 echo " |
| 777 | 777 |
| 778 I'm really going to erase this device. This will permanently ERASE | 778 I'm really going to erase this device. This will permanently ERASE |
| 779 whatever you may have on that drive. You won't be able to undo it. | 779 whatever you may have on that drive. You won't be able to undo it. |
| 780 | 780 |
| 781 $dev_desc | 781 $dev_desc |
| 782 " | 782 " |
| 783 | 783 |
| 784 prompt "If you're sure that's the device to use, enter 'DoIt' now: " | 784 prompt "If you're sure that's correct, enter 'DoIt' now (case is important): " |
| 785 read tmp | 785 read tmp |
| 786 if [ "$tmp" != "DoIt" ]; then | 786 if [ "$tmp" != "DoIt" ]; then |
| 787 quit | 787 quit |
| 788 fi | 788 fi |
| 789 echo " | 789 echo " |
| 790 | 790 |
| 791 Installing the recovery image | 791 Installing the recovery image |
| 792 | 792 |
| 793 " | 793 " |
| 794 | 794 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 813 prompt "Shall I remove the temporary files now? [y/n] " | 813 prompt "Shall I remove the temporary files now? [y/n] " |
| 814 read tmp | 814 read tmp |
| 815 case $tmp in | 815 case $tmp in |
| 816 [Yy]*) | 816 [Yy]*) |
| 817 cd | 817 cd |
| 818 \rm -rf ${WORKDIR} | 818 \rm -rf ${WORKDIR} |
| 819 ;; | 819 ;; |
| 820 esac | 820 esac |
| 821 | 821 |
| 822 exit 0 | 822 exit 0 |
| OLD | NEW |