From 9fcedc35e2e3f6ddd4a7f75e4d45df4aa759a9f8 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Tue, 17 May 2005 16:14:32 +0000 Subject: [PATCH] make distro name a parameter (-d breezy, for example) --- debian/changelog | 3 ++- livecd.sh | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 32a83801..39954ee8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ livecd-rootfs (0.20) breezy; urgency=low * incorporate ports.ubuntu.com repositories + * make distro name a parameter. - -- LaMont Jones Thu, 5 May 2005 16:35:16 -0600 + -- LaMont Jones Tue, 17 May 2005 10:09:11 -0600 livecd-rootfs (0.19) hoary; urgency=low diff --git a/livecd.sh b/livecd.sh index 4d68f9c1..68ef3082 100755 --- a/livecd.sh +++ b/livecd.sh @@ -52,11 +52,11 @@ case $(dpkg --print-architecture) in ;; *) USERMIRROR=http://ports.ubuntu.com/ubuntu-ports - SECMIRROR=http://ports.ubuntu.com/ubuntu-ports + SECMIRROR=${USERMIRROR} ;; esac case $(hostname --fqdn) in - *.mmjgroup.com) MIRROR=http://ia/ubuntu;; + *.mmjgroup.com) MIRROR=http://ia.mmjgroup.com/${USERMIRROR##*/};; *.ubuntu.com) MIRROR=http://jackass.ubuntu.com;; *.warthogs.hbd.com) MIRROR=http://jackass.ubuntu.com;; *.buildd) MIRROR=http://jackass.ubuntu.com;; @@ -67,11 +67,12 @@ esac USZ="400*1024" # 400MB for the user # And how many inodes? Default currently gives them > 100000 UINUM="" # blank (default), or number of inodes desired. -STE=hoary +STE=breezy EXCLUDE="" LIST="" -while getopts :e:i:I:mS:: name; do case $name in +while getopts :d:e:i:I:mS:: name; do case $name in + d) STE=$OPTARG;; e) EXCLUDE="$EXCLUDE $OPTARG";; i) LIST="$LIST $OPTARG";; I) UINUM=$(sanitize int "$OPTARG");;