home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / lib / YaST2 / bin / doaboot < prev    next >
Text File  |  2006-11-29  |  534b  |  21 lines

  1. #!/bin/bash
  2. # Installing aboot bootloader on Alpha...
  3. # needs environment
  4. #  RDEV = <device of />
  5. #  BDEV = <device of /boot>
  6. #
  7.  
  8. RDSK=`echo $RDEV|tr -d [0-9]`
  9. RDEV_NO=`echo $RDEV|tr -d '[:alpha:]' | tr -d '[=/=]'`
  10.  
  11. BDEV_NO=`echo $BDEV|tr -d '[:alpha:]' | tr -d '[=/=]'`
  12.  
  13. /sbin/swriteboot -f3 $RDSK /boot/bootlx
  14. /sbin/abootconf $RDSK $RDEV_NO
  15. rm /etc/aboot.conf
  16. touch /etc/aboot.conf
  17.  
  18. echo "0:$BDEV_NO/vmlinuz ro root=$RDEV" >> /etc/aboot.conf
  19. echo "1:$BDEV_NO/vmlinuz.old ro root=$RDEV" >> /etc/aboot.conf
  20. echo "_" >> /etc/aboot.conf
  21.