summaryrefslogtreecommitdiff
path: root/helpers/lh_depends
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:40 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:40 +0200
commit6f5e2da03e5fd1af2200d2f55ca84647bc8d3626 (patch)
treee2a861c1995eea707b2ac1c72930351191714493 /helpers/lh_depends
parent9a9491318d4a0469e4c97b28879ab34391c39095 (diff)
downloadlive-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.zip
live-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.tar.gz
Adding live-package 0.99.22-1.
Diffstat (limited to 'helpers/lh_depends')
-rwxr-xr-xhelpers/lh_depends86
1 files changed, 86 insertions, 0 deletions
diff --git a/helpers/lh_depends b/helpers/lh_depends
new file mode 100755
index 0000000..1cb1f52
--- /dev/null
+++ b/helpers/lh_depends
@@ -0,0 +1,86 @@
+#!/bin/sh
+
+# lh_depends.sh <action> <type>
+
+case "${1}" in
+ install)
+ if [ -z "${KEEP_MEMTEST86}" ]
+ then
+ if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ]
+ then
+ lh_chroot "aptitude install --assume-yes memtest86+"
+ fi
+ fi
+
+ if [ -z "${KEEP_SYSLINUX}" ]
+ then
+ lh_chroot "aptitude install --assume-yes syslinux"
+ fi
+
+ case "${2}" in
+ usb)
+ if [ -z "${KEEP_DOSFSTOOLS}" ]
+ then
+ lh_chroot "aptitude install --assume-yes dosfstools"
+ fi
+
+ if [ -z "${KEEP_MTOOLS}" ]
+ then
+ lh_chroot "aptitude install --assume-yes mtools"
+ fi
+
+ if [ -z "${KEEP_PARTED}" ]
+ then
+ lh_chroot "aptitude install --assume-yes parted"
+ fi
+ ;;
+ esac
+ ;;
+
+ remove)
+ if [ -z "${KEEP_MEMTEST86}" ]
+ then
+ if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ]
+ then
+ lh_chroot "aptitude purge --assume-yes memtest86+"
+ fi
+ fi
+
+ if [ -z "${KEEP_SYSLINUX}" ]
+ then
+ lh_chroot "aptitude purge --assume-yes syslinux"
+ fi
+
+ case "${2}" in
+ usb)
+ if [ -z "${KEEP_DOSFSTOOLS}" ]
+ then
+ lh_chroot "aptitude purge --assume-yes dosfstools"
+ fi
+
+ if [ -z "${KEEP_MEMTEST86}" ]
+ then
+ if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ]
+ then
+ lh_chroot "aptitude purge --assume-yes memtest86+"
+ fi
+ fi
+
+ if [ -z "${KEEP_MTOOLS}" ]
+ then
+ lh_chroot "aptitude purge --assume-yes mtools"
+ fi
+
+ if [ -z "${KEEP_PARTED}" ]
+ then
+ lh_chroot "aptitude purge --assume-yes parted"
+ fi
+
+ if [ -z "${KEEP_SYSLINUX}" ]
+ then
+ lh_chroot "aptitude purge --assume-yes syslinux"
+ fi
+ ;;
+ esac
+ ;;
+esac