From 55472e65570b2ebd33a0bd9ca4aebfb0cad203e4 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 23 Mar 2008 04:21:47 +0000 Subject: Allow LH_ENCRYPTION="disabled" to disable encryption --- functions/defaults.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'functions') diff --git a/functions/defaults.sh b/functions/defaults.sh index 70aa6f293..4023fa619 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -430,10 +430,13 @@ Set_defaults () fi fi - if [ -n "${LH_ENCRYPTION}" ] - then - LH_LINUX_PACKAGES="${LH_LINUX_PACKAGES} loop-aes-modules-2.6" - fi + case "${LH_ENCRYPTION}" in + ""|disabled) + ;; + *) + LH_LINUX_PACKAGES="${LH_LINUX_PACKAGES} loop-aes-modules-2.6" + ;; + esac fi # Setting packages string @@ -529,7 +532,7 @@ Set_defaults () LH_DEBIAN_INSTALLER_DAILY="${LH_DEBIAN_INSTALLER_DAILY:-disabled}" # Setting encryption - # LH_ENCRYPTION + LH_ENCRYPTION="${LH_ENCRYPTION:-disabled}" # Setting grub splash # LH_GRUB_SPLASH -- cgit v1.2.3