/[pxelator]/bin/install-iso.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/install-iso.sh

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

revision 8 by dpavlin, Sun Jul 26 14:46:44 2009 UTC revision 9 by dpavlin, Mon Jul 27 14:11:41 2009 UTC
# Line 6  cd iso Line 6  cd iso
6  test -d mnt || mkdir mnt  test -d mnt || mkdir mnt
7  sudo umount mnt  sudo umount mnt
8    
 to=../tftp/tinycore/  
 url=http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/release/  
9    
10  latest=`wget -q -O - $url | cut -d\" -f6 | grep '\.iso$'`  function fetch_iso() {
11  wget -nc $url/$latest  
12  sudo mount $latest mnt -o loop          latest=`wget -q -O - $1 | grep '\.iso' | sed 's/^.*"\([^"]*\.iso\)".*$/\1/' | head -1`
13  ls -alR mnt/  
14  cp -v mnt/boot/* $to          wget -nc $1/$latest
15            sudo mount $latest mnt -o loop
16            ls -alR mnt/
17            test -d $3 || mkdir $3
18            cp -v $2 $3
19            sudo umount mnt
20    
21    }
22    
23    fetch_iso http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/release/ mnt/boot/* ../tftp/tinycore/
24    fetch_iso http://cmrg.mayfirst.org/debirf/ mnt/*2.6* ../tftp/debirf

Legend:
Removed from v.8  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.26