home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-2 / Inter.Net 55-2.iso / Mandrake / instimage / usr / bin / postinstall2 < prev    next >
Encoding:
Text File  |  1999-12-08  |  777 b   |  29 lines

  1. #!/bin/sh
  2.  
  3. PATH=/usr/bin:/bin
  4.  
  5. echo Executing post-install...
  6. # Create /initrd so we can see /dos on it
  7. mkdir /mnt/initrd
  8. ln -sf /initrd/dos /mnt/mnt/dos 
  9.  
  10. # We need the loopback devices still, but they may have been removed...
  11. cp -arRv /mnt/dev/loop* /dev 2> /dev/null > /dev/null
  12.  
  13. # Set up fstab correctly (add /, and swapfile)
  14. echo "/dev/loop7      /       ext2    defaults        1       1" >> /mnt/etc/fstab
  15. echo "/initrd/dos/lnx4win/swapfile swap swap defaults    0    0" >> /mnt/etc/fstab
  16.  
  17. # Set up kernel
  18. cp /dos/lnx4win/vmlinuz /dos/lnx4win/vmlinuz.old
  19. cp /mnt/boot/vmlinuz /dos/lnx4win/vmlinuz
  20. rdev /dos/lnx4win/vmlinuz /dev/loop7
  21.  
  22. # Next time, we're not installing, we're booting linux...
  23. rm /dos/lnx4win/size.txt
  24. rm /dos/lnx4win/swapsize.txt
  25.  
  26. # Clean up 
  27. sync
  28. sync
  29.