ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/PXEBoot/gparted-live
Revision: 1144
Committed: 2009-02-08T16:41:00-08:00 (16 years, 4 months ago) by douglas
Content type: text/x-sh
File size: 726 byte(s)
Log Message:
Upgrade Ubunut and GParted Live.

File Contents

# Content
1 #!/bin/bash
2 # PXE Boot GParted Live
3 #
4 # Douglas Thrift
5 #
6 # $Id$
7
8 version=0.4.1-2
9
10 directory
11 get 'ftp://ftp.ucsb.edu/pub2/debian/dists/stable/main/installer-i386/current/images/netboot/pxelinux.0' "http://dl.sourceforge.net/sourceforge/gparted/gparted-live-$version.zip"
12 mkdir -p pxelinux.cfg
13
14 host=`uname -n`
15
16 function _configuration()
17 {
18 cat > pxelinux.cfg/${2:-default} <<-EOF
19 label GParted Live
20 MENU LABEL GParted Live
21 kernel live/vmlinuz1
22 append initrd=live/initrd1.img boot=live unionfs=aufs noswap noprompt vga=788 fetch=tftp://$1/gparted-live/live/filesystem.squashfs
23 EOF
24 }
25
26 _configuration `host $host | cut -d ' ' -f 4`
27
28 [[ $host = 'zweihander.ccs.ucsb.edu' ]] && _configuration 192.168.69.99 `hexify 192.168.69`

Properties

Name Value
svn:keywords Id
svn:mime-type text/x-sh