diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:47 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:28 +0100 |
commit | 677415f6d7efc1e5b888570d70af311d2900c69c (patch) | |
tree | 32fe7ced768666c229fff913fe12cbbf2fdd34e4 /helpers/lh_binary_memtest86 | |
parent | 811ff0532fcb3305ebefcd1d61e4eb6c260902eb (diff) | |
download | live-build-677415f6d7efc1e5b888570d70af311d2900c69c.zip live-build-677415f6d7efc1e5b888570d70af311d2900c69c.tar.gz |
Adding live-helper 1.0~a2-1.
Diffstat (limited to 'helpers/lh_binary_memtest86')
-rwxr-xr-x | helpers/lh_binary_memtest86 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/helpers/lh_binary_memtest86 b/helpers/lh_binary_memtest86 index 95952af..1fc3430 100755 --- a/helpers/lh_binary_memtest86 +++ b/helpers/lh_binary_memtest86 @@ -17,16 +17,16 @@ Read_conffile config/image Set_defaults # Requiring stage file -Require_stagefile "${LIVE_ROOT}"/.stage/bootstrap +Require_stagefile .stage/bootstrap # Checking lock file -Check_lockfile "${LIVE_ROOT}"/.lock +Check_lockfile .lock # Creating lock file -Create_lockfile "${LIVE_ROOT}"/.lock +Create_lockfile .lock # Checking stage file -Check_stagefile "${LIVE_ROOT}"/.stage/binary_memtest86 +Check_stagefile .stage/binary_memtest86 if [ "${LIVE_ARCHITECTURE}" != "amd64" ] && [ "${LIVE_ARCHITECTURE}" != "i386" ] then @@ -36,7 +36,7 @@ fi if [ "${LIVE_MEMTEST86}" = "enabled" ] then - if [ ! -f "${LIVE_CHROOT}"/boot/memtest86+.bin ] + if [ ! -f chroot/boot/memtest86+.bin ] then PACKAGES="${PACKAGES} memtest86+" fi @@ -45,7 +45,7 @@ then then # Installing symlinks case "${LH_APT}" in - apt) + apt|apt-get) Chroot "apt-get install --yes ${PACKAGES}" ;; @@ -57,15 +57,15 @@ then case "${LIVE_BINARY_IMAGE}" in iso) - DESTDIR="${LIVE_ROOT}/binary/isolinux" + DESTDIR="binary/isolinux" ;; net) - DESTDIR="${LIVE_ROOT}/tftpboot" + DESTDIR="tftpboot" ;; - usb) - DESTDIR="${LIVE_ROOT}/binary" + usb|hdd) + DESTDIR="binary" ;; esac @@ -76,13 +76,13 @@ then fi # Installing memtest86+ - cp "${LIVE_ROOT}"/chroot/boot/memtest86+.bin "${DESTDIR}"/memtest + cp chroot/boot/memtest86+.bin "${DESTDIR}"/memtest if [ -n "${PACKAGES}" ] then # Removing syslinux case "${LH_APT}" in - apt) + apt|apt-get) Chroot "apt-get remove --purge --yes ${PACKAGES}" ;; @@ -93,5 +93,5 @@ then fi # Creating stage file - Create_stagefile "${LIVE_ROOT}"/.stage/binary_memtest86 + Create_stagefile .stage/binary_memtest86 fi |