Magellan Linux

Diff of /trunk/installer-simple/bin/installer.sh.in

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

revision 2345 by niro, Fri Jan 3 15:02:43 2014 UTC revision 2398 by niro, Tue Jan 7 13:06:55 2014 UTC
# Line 16  INSTALLER_LIBDIR="%LIBDIR%" Line 16  INSTALLER_LIBDIR="%LIBDIR%"
16  # -> now in images.conf  # -> now in images.conf
17  CURRENTLINE=0  CURRENTLINE=0
18    
19    die()
20    {
21     echo "Error: $@"
22     exit 1
23    }
24    
25  # configuration  # configuration
26  if [ -e %SYSCONFDIR%/installer.conf ]  if [ -e %SYSCONFDIR%/installer.conf ]
27  then  then
# Line 70  FORMAT_FILESYSTEM="${DEFAULT_FILESYSTEM} Line 76  FORMAT_FILESYSTEM="${DEFAULT_FILESYSTEM}
76  #  DIALOG BOXEN #  #  DIALOG BOXEN #
77  #################################################  #################################################
78    
 die()  
 {  
  echo "Error: $@"  
  exit 1  
 }  
   
79  dialog_die()  dialog_die()
80  {  {
81   ERROR="$1"   ERROR="$1"
# Line 86  dialog_die() Line 86  dialog_die()
86    
87  dialog_warning()  dialog_warning()
88  {  {
89   dialog \   local retval
90   --backtitle "${TITLE}" \  
91   --colors \   yesnobox $"\Z1 !!! Warning !!! \Zn\n\n\This harddrive will be irreversibly erased.\n\n\Do you want to continue ?"
92   --defaultno \   retval=$?
93   --yesno "\Z1 !!! Achtung !!! \Zn\n\n\   if [[ ${retval} -eq 1 ]]
  Diese Festplatte wird unwiederruflich geloescht werden.\n\n\  
  Soll ich wirklich fortfahren ?" 10 70  
  RES=$?  
  if [[ ${RES} -eq 1 ]]  
94   then   then
95   clear   clear
96   echo "Der Vorgang wurde abgebrochen."   echo $"The process was aborted."
97   exit 1   exit 1
98   fi   fi
99  }  }

Legend:
Removed from v.2345  
changed lines
  Added in v.2398