Magellan Linux

Diff of /alx-src/trunk/alxinstall-ng/bin/alxinstall-ng.sh

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

revision 259 by niro, Mon Apr 18 19:01:41 2005 UTC revision 268 by niro, Tue Apr 19 17:24:57 2005 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  #  #
3  # $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.1.1.1 2005-04-18 19:01:41 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.4 2005-04-19 17:24:57 niro Exp $
4  #  #
5  # AutoSta_LX Installation Script  # AutoSta_LX Installation Script
6  # version: 0.8b  # version: 0.8b
# Line 321  dialog_main() { Line 321  dialog_main() {
321   "1" "AutoSta_LX installieren" \   "1" "AutoSta_LX installieren" \
322   "2" "Uebersicht gefundener Laufwerke" \   "2" "Uebersicht gefundener Laufwerke" \
323   "3" "Beenden und neustarten" \   "3" "Beenden und neustarten" \
324   "4" "Beenden ohne neustarten" `   "4" "Beenden und eine Shell starten" `
325   RES=$?   RES=$?
326   if [ "$RES" == "1" ];then   if [ "$RES" == "1" ];then
327   exit 1   exit 1
# Line 338  dialog_main() { Line 338  dialog_main() {
338   ;;   ;;
339   "3") install_do_reboot   "3") install_do_reboot
340   ;;   ;;
341     "4") /bin/bash --login -i
342     ;;
343   esac   esac
344   fi   fi
345   done   done
# Line 498  install_bootsector_chroot() { Line 500  install_bootsector_chroot() {
500   fi   fi
501    
502   echo -e "default 0" > $INSTALLPATH/boot/grub/grub.conf || die   echo -e "default 0" > $INSTALLPATH/boot/grub/grub.conf || die
503   echo -e "timeout 03" >> $INSTALLPATH/boot/grub/grub.conf ||die   echo -e "timeout 0" >> $INSTALLPATH/boot/grub/grub.conf ||die
504    
505   #no support for splash image in 6.1-r2   #no support for splash image in 6.1-r2
506   #echo -e "splashimage=(hd0,0)/boot/grub/splash.xpm.gz" >> $INSTALLPATH/boot/grub/grub.conf || die   #echo -e "splashimage=(hd0,0)/boot/grub/splash.xpm.gz" >> $INSTALLPATH/boot/grub/grub.conf || die
# Line 524  root (hd0,0) Line 526  root (hd0,0)
526  setup (hd0)  setup (hd0)
527  quit  quit
528  EOF  EOF
529  exit  exit 0
530  CHROOTEOF  CHROOTEOF
531   fi   fi
532    
# Line 537  root (hd0,0) Line 539  root (hd0,0)
539  setup (hd0)  setup (hd0)
540  quit  quit
541  EOF  EOF
542  exit  exit 0
543  CHROOTEOF  CHROOTEOF
544   fi   fi
545    
546   ##enters chroot   ##enters chroot
547   mount -t proc proc $INSTALLPATH/proc   mount -t proc none $INSTALLPATH/proc
548   chroot $INSTALLPATH /bin/bash   # bind /dev to get the devices right,
549     # if bootet from a 2.6 kernel with udev
550     mount -o bind /dev $INSTALLPATH/dev
551     chroot $INSTALLPATH /bin/bash --rcfile /root/.bashrc -i
552   umount $INSTALLPATH/proc   umount $INSTALLPATH/proc
553     umount $INSTALLPATH/dev
554   rm $INSTALLPATH/root/.bashrc   rm $INSTALLPATH/root/.bashrc
555  }  }
556    
# Line 564  install_alxconfig(){ Line 570  install_alxconfig(){
570    
571  install_system_settings(){  install_system_settings(){
572   ### schreibe fstab   ### schreibe fstab
573   echo -e "$BOOTHDD\t/\text3\tnoatime,noauto\t1 1" > $INSTALLPATH/etc/fstab || die   echo -e "$BOOTHDD\t/boot\text3\tnoatime,noauto\t1 1" > $INSTALLPATH/etc/fstab || die
574   echo -e "$ROOTHDD\t/\text3\tnoatime\t0 0" >> $INSTALLPATH/etc/fstab || die   echo -e "$ROOTHDD\t/\text3\tnoatime\t0 0" >> $INSTALLPATH/etc/fstab || die
575   echo -e "$SWAPHDD\tswap\tswap\tpri=1\t0 0" >> $INSTALLPATH/etc/fstab || die   echo -e "$SWAPHDD\tswap\tswap\tpri=1\t0 0" >> $INSTALLPATH/etc/fstab || die
576   echo -e "none\t/proc\tproc\tdefaults\t0 0" >> $INSTALLPATH/etc/fstab || die   echo -e "none\t/proc\tproc\tdefaults\t0 0" >> $INSTALLPATH/etc/fstab || die

Legend:
Removed from v.259  
changed lines
  Added in v.268