summaryrefslogtreecommitdiff
path: root/src/scripts/02defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:39 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:39 +0200
commitaf04c39b8b9a20d70e7123c57ec175e1b34d7d94 (patch)
treeeae1bc5312b8d6fa8dc5048b172923a01730026b /src/scripts/02defaults.sh
parent9a5955a79f907075d0cde61db6f7d2d605ab3b4a (diff)
downloadvyos-live-build-af04c39b8b9a20d70e7123c57ec175e1b34d7d94.tar.gz
vyos-live-build-af04c39b8b9a20d70e7123c57ec175e1b34d7d94.zip
Adding live-package 0.99.20-1.
Diffstat (limited to 'src/scripts/02defaults.sh')
-rw-r--r--src/scripts/02defaults.sh43
1 files changed, 33 insertions, 10 deletions
diff --git a/src/scripts/02defaults.sh b/src/scripts/02defaults.sh
index e762145a8..924ad65c2 100644
--- a/src/scripts/02defaults.sh
+++ b/src/scripts/02defaults.sh
@@ -29,6 +29,10 @@ Defaults ()
LIVE_TYPE="Net"
;;
+ usb)
+ LIVE_TYPE="Usb"
+ ;;
+
*)
echo "E: image type wrong or not yet supported."
Usage 1
@@ -72,6 +76,9 @@ Defaults ()
if [ -z "${LIVE_FILESYSTEM}" ] && [ "${LIVE_TYPE}" = "Iso" ]
then
LIVE_FILESYSTEM="squashfs"
+ elif [ -z "${LIVE_FILESYSTEM}" ] && [ "${LIVE_TYPE}" = "Usb" ]
+ then
+ LIVE_FILESYSTEM="squashfs"
elif [ -z "${LIVE_FILESYSTEM}" ] && [ "${LIVE_TYPE}" = "Net" ]
then
LIVE_FILESYSTEM="plain"
@@ -164,15 +171,15 @@ Defaults ()
if [ "${LIVE_PACKAGE_LIST}" = "gnome-desktop" ]
then
LIVE_PACKAGE_LIST="gnome"
- LIVE_TASKS="${LIVE_TASKS} gnome-desktop"
+ LIVE_TASKS="${LIVE_TASKS} standard laptop desktop gnome-desktop"
elif [ "${LIVE_PACKAGE_LIST}" = "kde-desktop" ]
then
LIVE_PACKAGE_LIST="kde"
- LIVE_TASKS="${LIVE_TASKS} kde-desktop"
+ LIVE_TASKS="${LIVE_TASKS} standard laptop desktop kde-desktop"
elif [ "${LIVE_PACKAGE_LIST}" = "xfce-desktop" ]
then
LIVE_PACKAGE_LIST="xfce"
- LIVE_TASKS="${LIVE_TASKS} xfce-desktop"
+ LIVE_TASKS="${LIVE_TASKS} standard laptop desktop xfce-desktop"
fi
# Check for package lists
@@ -185,13 +192,16 @@ Defaults ()
LIVE_PACKAGE_LIST="${BASE}/lists/standard"
fi
else
- if [ ! -r "${LIVE_PACKAGE_LIST}" ]
+ if [ "${LIVE_PACKAGE_LIST}" != "everything" ]
then
- if [ -r "${BASE}/lists/${LIVE_PACKAGE_LIST}" ]
+ if [ ! -r "${LIVE_PACKAGE_LIST}" ]
then
- LIVE_PACKAGE_LIST="${BASE}/lists/${LIVE_PACKAGE_LIST}"
- else
- LIVE_PACKAGE_LIST="${BASE}/lists/standard"
+ if [ -r "${BASE}/lists/${LIVE_PACKAGE_LIST}" ]
+ then
+ LIVE_PACKAGE_LIST="${BASE}/lists/${LIVE_PACKAGE_LIST}"
+ else
+ LIVE_PACKAGE_LIST="${BASE}/lists/standard"
+ fi
fi
fi
fi
@@ -223,9 +233,9 @@ Defaults ()
fi
# Set debian sections
- if [ -z "${LIVE_SECTION}" ]
+ if [ -z "${LIVE_SECTIONS}" ]
then
- LIVE_SECTION="main"
+ LIVE_SECTIONS="main"
fi
# Set netboot server
@@ -279,4 +289,17 @@ Defaults ()
then
LIVE_DEBCONF_PRIORITY="critical"
fi
+
+ if [ -z "${LIVE_DAEMONS}" ]
+ then
+ LIVE_DAEMONS="yes"
+ fi
+
+ # This is a hack because Ubuntu does not ship cdrkit already
+ if [ -x /usr/bin/genisoimage ]
+ then
+ GENISOIMAGE="/usr/bin/genisoimage"
+ else
+ GENISOIMAGE="/usr/bin/mkisofs"
+ fi
}