summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_memtest
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_binary_memtest')
-rwxr-xr-xhelpers/lh_binary_memtest41
1 files changed, 7 insertions, 34 deletions
diff --git a/helpers/lh_binary_memtest b/helpers/lh_binary_memtest
index 48c8001..ea07422 100755
--- a/helpers/lh_binary_memtest
+++ b/helpers/lh_binary_memtest
@@ -56,35 +56,19 @@ then
exit 0
fi
+# Checking depends
case "${LIVE_MEMTEST}" in
memtest86)
- if [ ! -f chroot/boot/memtest86.bin ]
- then
- PACKAGES="${PACKAGES} memtest86"
- fi
+ Check_package chroot/boot/memtest86.bin memtest86
;;
memtest86+)
- if [ ! -f chroot/boot/memtest86+.bin ]
- then
- PACKAGES="${PACKAGES} memtest86+"
- fi
+ Check_package chroot/boot/memtest86+.bin memtest86+
;;
esac
-if [ -n "${PACKAGES}" ]
-then
- # Installing symlinks
- case "${LH_APT}" in
- apt|apt-get)
- Chroot "apt-get install --yes ${PACKAGES}"
- ;;
-
- aptitude)
- Chroot "aptitude install --assume-yes ${PACKAGES}"
- ;;
- esac
-fi
+# Installing depends
+Install_package
# Setting destination directory
case "${LIVE_BINARY_IMAGE}" in
@@ -132,19 +116,8 @@ case "${LIVE_MEMTEST}" in
;;
esac
-if [ -n "${PACKAGES}" ]
-then
- # Removing packages
- case "${LH_APT}" in
- apt|apt-get)
- Chroot "apt-get remove --purge --yes ${PACKAGES}"
- ;;
-
- aptitude)
- Chroot "aptitude purge --assume-yes ${PACKAGES}"
- ;;
- esac
-fi
+# Removing depends
+Remove_package
# Creating stage file
Create_stagefile .stage/binary_memtest