From: Tim Yamin Date: Sat, 19 Jun 2004 22:38:08 +0000 (+0000) Subject: Fix for bug #54455; moved the code to create a backup .config upwards since X-Git-Tag: v3.4.10.902~644 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ffd9fccf1c6310dd6633e8029455e46d441b1d9d;p=genkernel.git Fix for bug #54455; moved the code to create a backup .config upwards since before the "make mrproper" just wiped it out. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@108 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/gen_configkernel.sh b/gen_configkernel.sh index 8c9bba3..927cba2 100644 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -28,6 +28,7 @@ config_kernel() { determine_config_file cd "${KERNEL_DIR}" || gen_die 'Could not switch to the kernel directory!' + isTrue "${CLEAN}" && cp "${KERNEL_DIR}/.config" "${KERNEL_DIR}/.config.bak" > /dev/null 2>&1 if isTrue ${MRPROPER} then print_info 1 'kernel: >> Running mrproper...' @@ -41,7 +42,6 @@ config_kernel() { then print_info 1 "config: Using config from ${KERNEL_CONFIG}" print_info 1 ' Previous config backed up to .config.bak' - cp "${KERNEL_DIR}/.config" "${KERNEL_DIR}/.config.bak" > /dev/null 2>&1 cp "${KERNEL_CONFIG}" "${KERNEL_DIR}/.config" || gen_die 'Could not copy configuration file!' fi if isTrue "${CLEAN}" || isTrue "${OLDCONFIG}"