summaryrefslogtreecommitdiffstats
path: root/febootstrap.sh
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-09 11:49:01 +0100
committerRichard Jones <rjones@redhat.com>2009-04-09 11:49:01 +0100
commit9a6f7420554d0cd1116b230fd48052613f6d5885 (patch)
treea8f96b4686e9bfe8e429c09983b59dc16a581edf /febootstrap.sh
parent467d77a9af3dbb1a4bcfbb9c7f97c8e300d6dca0 (diff)
downloadfebootstrap-9a6f7420554d0cd1116b230fd48052613f6d5885.tar.gz
febootstrap-9a6f7420554d0cd1116b230fd48052613f6d5885.tar.xz
febootstrap-9a6f7420554d0cd1116b230fd48052613f6d5885.zip
Allow proxy to be specified (Kumar Gala).
Diffstat (limited to 'febootstrap.sh')
-rwxr-xr-xfebootstrap.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/febootstrap.sh b/febootstrap.sh
index 5386b2c..c7eeca4 100755
--- a/febootstrap.sh
+++ b/febootstrap.sh
@@ -19,8 +19,8 @@
# Written by Richard W.M. Jones <rjones@redhat.com>
TEMP=`getopt \
- -o g:i: \
- --long groupinstall:,group-install:,help,install:,noclean,no-clean \
+ -o g:i:p: \
+ --long groupinstall:,group-install:,help,install:,noclean,no-clean,proxy: \
-n febootstrap -- "$@"`
if [ $? != 0 ]; then
echo "febootstrap: problem parsing the command line arguments"
@@ -45,6 +45,9 @@ while true; do
-i|--install)
packages[i++]="$2"
shift 2;;
+ -p|--proxy)
+ proxy="proxy=$2"
+ shift 2;;
--groupinstall|--group-install)
packages[i++]="@$2"
shift 2;;
@@ -96,6 +99,7 @@ name=febootstrap $repo $arch
failovermethod=priority
enabled=1
gpgcheck=0
+$proxy
__EOF__
# "Mirror" parameter is a bit misnamed, but it means a local mirror,