Lines 5-18
Link Here
|
5 |
METHOD="${METHOD:-cdrom}" |
5 |
METHOD="${METHOD:-cdrom}" |
6 |
HOST="${HOST:-}" |
6 |
HOST="${HOST:-}" |
7 |
PREFIX="${PREFIX:-}" |
7 |
PREFIX="${PREFIX:-}" |
|
|
8 |
LOGIN="${LOGIN:-}" |
9 |
PASSWORD="${PASSWORD:-}" |
10 |
if [ -n "$PASSWORD" ]; then |
11 |
PASSWORD=$(echo ":$PASSWORD") |
12 |
fi |
13 |
|
8 |
|
14 |
|
9 |
[ "$PREFIX" != "/" ] || PREFIX= |
15 |
[ "$PREFIX" != "/" ] || PREFIX= |
10 |
|
16 |
|
11 |
image_prefix= |
17 |
image_prefix= |
12 |
case "$METHOD" in |
18 |
case "$METHOD" in |
13 |
http|ftp) |
19 |
http) |
14 |
image_prefix="$METHOD://$HOST$PREFIX" |
20 |
image_prefix="$METHOD://$HOST$PREFIX" |
15 |
;; |
21 |
;; |
|
|
22 |
ftp) |
23 |
image_prefix="$METHOD://$LOGIN$PASSWORD@$HOST$PREFIX" |
24 |
;; |
16 |
cdrom|disk|nfs) |
25 |
cdrom|disk|nfs) |
17 |
image_prefix="$image_dir" |
26 |
image_prefix="$image_dir" |
18 |
;; |
27 |
;; |