Revision: | 1421 |
Committed: | 2011-03-09T12:12:47-08:00 (14 years, 3 months ago) by douglas |
Content type: | text/x-sh |
File size: | 835 byte(s) |
Log Message: | Updates! |
# | Content |
---|---|
1 | #!/bin/bash |
2 | # PXE Boot GParted Live |
3 | # |
4 | # Douglas Thrift |
5 | # |
6 | # $Id$ |
7 | |
8 | version='0.8.0-1' |
9 | |
10 | case $HOSTNAME in |
11 | (*.ccs.ucsb.edu) |
12 | mirror=ftp://ftp.ucsb.edu/pub/mirrors/linux/debian |
13 | ;; |
14 | (*) |
15 | mirror=ftp://ftp.us.debian.org/debian |
16 | ;; |
17 | esac |
18 | |
19 | directory |
20 | get "$mirror/dists/stable/main/installer-i386/current/images/netboot/pxelinux.0" "http://prdownloads.sourceforge.net/gparted/gparted-live-$version.zip" |
21 | mkdir -p pxelinux.cfg |
22 | |
23 | function _configuration() |
24 | { |
25 | cat > pxelinux.cfg/${2:-default} <<-EOF |
26 | label GParted Live |
27 | MENU LABEL GParted Live |
28 | kernel live/vmlinuz1 |
29 | append initrd=live/initrd1.img boot=live unionfs=aufs noswap noprompt vga=788 fetch=tftp://$1/gparted-live/live/filesystem.squashfs |
30 | EOF |
31 | } |
32 | |
33 | _configuration `host $HOSTNAME | cut -d ' ' -f 4` |
34 | |
35 | case $HOSTNAME in |
36 | (*.ccs.ucsb.edu) |
37 | _configuration 192.168.69.99 `hexify 192.168.69` |
38 | ;; |
39 | esac |
Name | Value |
---|---|
svn:keywords | Id |
svn:mime-type | text/x-sh |