Magellan Linux

Diff of /trunk/installer-simple/functions/installer-dialogs.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2426 by niro, Tue Jan 7 14:06:18 2014 UTC revision 2882 by niro, Fri Jul 31 09:39:45 2015 UTC
# Line 28  dialog_install_system_image() Line 28  dialog_install_system_image()
28   gaugebox $"Copying system image ..."   gaugebox $"Copying system image ..."
29  }  }
30    
31    dialog_install_initrd()
32    {
33     infobox $"Writing initrd ..."
34    }
35    
36  dialog_install_bootsector()  dialog_install_bootsector()
37  {  {
38   infobox $"Writing bootsector ..."   infobox $"Writing bootsector ..."
# Line 35  dialog_install_bootsector() Line 40  dialog_install_bootsector()
40    
41  dialog_install_successful()  dialog_install_successful()
42  {  {
43   messagebox $"The installation was \Z2successful\Zn."   OK_LABEL=$"Finish" messagebox $"The installation was \Z2successful\Zn."
44  }  }
45    
46  dialog_install_failure()  dialog_install_failure()
# Line 45  dialog_install_failure() Line 50  dialog_install_failure()
50    
51  dialog_no_harddrive_found()  dialog_no_harddrive_found()
52  {  {
53   OK_LABEL=$"abort" messagebox $"No appropriate harddrive found.\nInstallation failed."   OK_LABEL=$"Abort" messagebox $"No appropriate harddrive found.\nInstallation failed."
54  }  }
55    
56  dialog_select_target_harddrive()  dialog_select_target_harddrive()
57  {  {
58   menubox $"Select installation target drive:" $(for i in ${ALL_DISKS}; do echo "${i}:";done)   menubox $"Select installation target drive:" $(for i in ${ALL_DISKS}; do echo "${i}:";done)
59  }  }
60    
61    dialog_setup_hdd_info()
62    {
63     case "${INSTALL_METHOD}" in
64     auto)
65     dialog_setup_hdd_info_auto
66     dialog_setup_hdd_create_partitions
67     ;;
68     normal) dialog_setup_hdd_info_normal ;;
69     esac
70    }
71    
72    dialog_setup_hdd_info_normal()
73    {
74     local drivenode="${HDD//\/dev\/}1"
75    
76     messagebox -h $"[ Harddrive partitioning ]" \
77     $"Please create 1 partition.\n\n[ \Z3${drivenode}\Zn ] type: \Z3linux\Zn with the whole diskspace.\nPlease mark ${drivenode} \Z3bootable\Zn."
78    }
79    
80    dialog_setup_hdd_info_auto()
81    {
82     local drivenode="${HDD//\/dev\/}"
83    
84     messagebox -h $"[ Harddrive partitioning ]" \
85     $"\Z1Warning!\Zn\n\nAll data on disk [ \Z3${drivenode}\Zn ] will be erased!"
86    }
87    
88    dialog_setup_system_menu()
89    {
90     menubox -h $"[ Harddrive partitioning ]" $"\nSelect an installation mode" \
91     $"1:Automatic setup (recommended)" \
92     ":" \
93     $":\Z1Expert modes:\Zn" \
94     $"2:Common IDE-disk (manual setup)"
95    }
96    
97    dialog_main()
98    {
99     CANCEL_LABEL=$"Exit" menubox $"Configuration:" \
100     $"1:Install system" \
101     $"2:Show detected harddrives" \
102     $"3:Exit and reboot" \
103     $"4:Exit and drop into a shell"
104    }

Legend:
Removed from v.2426  
changed lines
  Added in v.2882