summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_memtest
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-12-13 21:17:45 +0100
committerDaniel Baumann <daniel@debian.org>2009-12-13 21:17:45 +0100
commit0b285d1c45dbe1c0fc21136ccec2e41c214acdc0 (patch)
tree7e7cc9f57ceb0d3700ee13541944efb044ae9d60 /helpers/lh_binary_memtest
parentea05bbb3cae86270f0f8b1150566b9925e1abb3d (diff)
downloadvyos-live-build-0b285d1c45dbe1c0fc21136ccec2e41c214acdc0.tar.gz
vyos-live-build-0b285d1c45dbe1c0fc21136ccec2e41c214acdc0.zip
For consistency, using true|false instead of enabled|disabled in configuration options.
Diffstat (limited to 'helpers/lh_binary_memtest')
-rwxr-xr-xhelpers/lh_binary_memtest8
1 files changed, 4 insertions, 4 deletions
diff --git a/helpers/lh_binary_memtest b/helpers/lh_binary_memtest
index 98a3be517..581ec9a1f 100755
--- a/helpers/lh_binary_memtest
+++ b/helpers/lh_binary_memtest
@@ -23,7 +23,7 @@ Arguments "${@}"
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
-if [ "${LH_BINARY_IMAGES}" = "virtual-hdd" ] || [ "${LH_MEMTEST}" = "disabled" ] || [ "${LH_MEMTEST}" = "none" ]
+if [ "${LH_BINARY_IMAGES}" = "virtual-hdd" ] || [ "${LH_MEMTEST}" = "false" ] || [ "${LH_MEMTEST}" = "none" ]
then
exit 0
fi
@@ -48,7 +48,7 @@ then
exit 0
fi
-if [ "${LH_CHROOT_BUILD}" = "enabled" ]
+if [ "${LH_CHROOT_BUILD}" = "true" ]
then
if [ -f chroot/usr/sbin/grub ] && [ ! -f chroot/boot/grub/menu.lst ]
@@ -95,11 +95,11 @@ mkdir -p "${DESTDIR}"
# Installing memtest
case "${LH_CHROOT_BUILD}" in
- enabled)
+ true)
cp chroot/boot/${LH_MEMTEST}.bin "${DESTDIR}"/memtest
;;
- disabled)
+ false)
cp /boot/${LH_MEMTEST}.bin "${DESTDIR}"/memtest
;;
esac