Guest User

Untitled

a guest
Jun 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. (cd /usr || exit 1
  2.  list="`ls | fgrep -v install`"
  3.  for d in $list
  4.  do
  5.     cpdir -v $d /mnt/$d    
  6.     echo $c
  7.     c=`expr $c + 4`
  8.  done
  9. ) | DIALOG --title "Installation Progress" --gauge "Please wait ..." 10 60 0
  10. #progressbar "$USRFILES" || exit    # Copy the usr floppy.
  11.  
  12. umount /dev/$usr >/dev/null || exit     # Unmount the intended /usr.
  13. mount /dev/$root /mnt >/dev/null || exit
  14.  
  15. # Running from the installation CD.
  16. cpdir -vx / /mnt | progressbar "$ROOTFILES" || exit
  17. chmod o-w /mnt/usr
  18. cp /mnt/etc/motd.install /mnt/etc/motd
  19.  
  20. # Fix /var/log
  21. rm /mnt/var/log
  22. ln -s /usr/log /mnt/var/log
  23.  
  24. # CD remnants that aren't for the installed system
  25. rm /mnt/etc/issue /mnt/CD /mnt/.* 2>/dev/null
  26. echo >/mnt/etc/fstab "/dev/$root    /   mfs rw  0   1
  27. /dev/$usr   /usr    $FSTYPE rw  0   2
  28. $fshome"
Add Comment
Please, Sign In to add comment