/[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

Contents of /bin/install-iso.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations)
Tue Jul 28 14:04:33 2009 UTC (13 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 683 byte(s)
unpack debian netboot

1 #!/bin/sh -x
2
3 test -d iso || mkdir iso
4 cd iso
5
6 test -d mnt || mkdir mnt
7 sudo umount mnt
8
9
10 function fetch_iso() {
11
12 latest=`wget -q -O - $1 | grep '\.iso' | sed 's/^.*"\([^"]*\.iso\)".*$/\1/' | head -1`
13
14 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
25
26 wget -m -nH -nd http://people.debian.org/~joeyh/d-i/images/daily/netboot/netboot.tar.gz
27 dir=../tftp/debian-netboot
28 test -d $dir || mkdir $dir
29 tar xvfz netboot.tar.gz -C $dir

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26