get_KV() {
if [ "${CMD_NO_KERNEL_SOURCES}" = '1' -a -e "${CMD_KERNCACHE}" ]
then
- [ -d ${tmp} ] && gen_die "temporary directory already exists! Exiting."
- (umask 077 && mkdir ${tmp}) || {
+ [ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
+ (umask 077 && mkdir ${TEMP}) || {
gen_die "Could not create temporary directory! Exiting."
}
- /bin/tar -xj -C ${tmp} -f ${CMD_KERNCACHE} kerncache.config
- if [ -e ${tmp}/kerncache.config ]
+ /bin/tar -xj -C ${TEMP} -f ${CMD_KERNCACHE} kerncache.config
+ if [ -e ${TEMP}/kerncache.config ]
then
KERN_24=0
- VER=`grep ^VERSION\ \= ${tmp}/kerncache.config | awk '{ print $3 };'`
- PAT=`grep ^PATCHLEVEL\ \= ${tmp}/kerncache.config | awk '{ print $3 };'`
- SUB=`grep ^SUBLEVEL\ \= ${tmp}/kerncache.config | awk '{ print $3 };'`
- EXV=`grep ^EXTRAVERSION\ \= ${tmp}/kerncache.config | sed -e "s/EXTRAVERSION =//" -e "s/ //g"`
+ VER=`grep ^VERSION\ \= ${TEMP}/kerncache.config | awk '{ print $3 };'`
+ PAT=`grep ^PATCHLEVEL\ \= ${TEMP}/kerncache.config | awk '{ print $3 };'`
+ SUB=`grep ^SUBLEVEL\ \= ${TEMP}/kerncache.config | awk '{ print $3 };'`
+ EXV=`grep ^EXTRAVERSION\ \= ${TEMP}/kerncache.config | sed -e "s/EXTRAVERSION =//" -e "s/ //g"`
if [ "${PAT}" -gt '4' -a "${VER}" -ge '2' ]
then
- LOV=`grep ^CONFIG_LOCALVERSION\= ${tmp}/kerncache.config | sed -e "s/CONFIG_LOCALVERSION=\"\(.*\)\"/\1/"`
+ LOV=`grep ^CONFIG_LOCALVERSION\= ${TEMP}/kerncache.config | sed -e "s/CONFIG_LOCALVERSION=\"\(.*\)\"/\1/"`
KV=${VER}.${PAT}.${SUB}${EXV}${LOV}
else
KERN_24=1
fi
else
- rm -r ${tmp}
+ rm -r ${TEMP}
gen_die "Could not find kerncache.config in the kernel cache! Exiting."
fi
- rm -r ${tmp}
+ rm -r ${TEMP}
else
# Configure the kernel
then
UTILS_AS="${CMD_UTILS_AS}"
fi
-
+
CACHE_DIR=`arch_replace "${CACHE_DIR}"`
-
+ CACHE_CPIO_DIR="${CACHE_DIR}/cpio"
BUSYBOX_BINCACHE=`cache_replace "${BUSYBOX_BINCACHE}"`
MODULE_INIT_TOOLS_BINCACHE=`cache_replace "${MODULE_INIT_TOOLS_BINCACHE}"`
MODUTILS_BINCACHE=`cache_replace "${MODUTILS_BINCACHE}"`
COMPRESS_INITRD=0
fi
+ if isTrue ${CMD_POSTCLEAR}
+ then
+ POSTCLEAR=1
+ else
+ POSTCLEAR=0
+ fi
+
if [ "${CMD_MRPROPER}" != '' ]
then
MRPROPER="${CMD_MRPROPER}"
mknod -m 660 null c 1 3
mknod -m 600 tty1 c 4 1
cd "${TEMP}/initramfs-base-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-base-layout.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-base-layout.cpio.gz
rm -rf "${TEMP}/initramfs-base-temp" > /dev/null
}
done
cd "${TEMP}/initramfs-busybox-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-busybox-${BUSYBOX_VER}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-busybox-${BUSYBOX_VER}.cpio.gz
rm -rf "${TEMP}/initramfs-busybox-temp" > /dev/null
}
chmod +x "${TEMP}/initramfs-insmod-temp/bin/insmod"
cd "${TEMP}/initramfs-insmod-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-insmod-${MODULE_INIT_TOOLS_VER}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-insmod-${MODULE_INIT_TOOLS_VER}.cpio.gz
rm -rf "${TEMP}/initramfs-insmod-temp" > /dev/null
}
[ "${UDEV}" -eq '1' ] && { /bin/tar -jxpf "${UDEV_BINCACHE}" -C "${TEMP}/initramfs-udev-temp" ||
gen_die "Could not extract udev binary cache!"; }
cd "${TEMP}/initramfs-udev-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-udev-${UDEV_VER}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-udev-${UDEV_VER}.cpio.gz
rm -rf "${TEMP}/initramfs-udev-temp" > /dev/null
}
gen_die "Could not extract blkid binary cache!"; }
chmod a+x "${TEMP}/initramfs-blkid-temp/bin/blkid"
cd "${TEMP}/initramfs-blkid-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-blkid-${E2FSPROGS_VER}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-blkid-${E2FSPROGS_VER}.cpio.gz
rm -rf "${TEMP}/initramfs-blkid-temp" > /dev/null
}
bunzip2 "${TEMP}/initramfs-devfs-temp/bin/devfsd.bz2" || gen_die "could not uncompress devfsd"
chmod +x "${TEMP}/initramfs-devfs-temp/bin/devfsd"
cd "${TEMP}/initramfs-devfs-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-devfs-${DEVFSD_VER}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-devfs-${DEVFSD_VER}.cpio.gz
rm -rf "${TEMP}/initramfs-devfs-temp" > /dev/null
}
/bin/tar -jxpf "${UNIONFS_MODULES_BINCACHE}" -C "${TEMP}/initramfs-unionfs-modules-temp" ||
gen_die "Could not extract unionfs modules binary cache!";
cd "${TEMP}/initramfs-unionfs-modules-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-unionfs-${UNIONFS_VER}-modules-${KV}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-unionfs-${UNIONFS_VER}-modules-${KV}.cpio.gz
rm -r "${TEMP}/initramfs-unionfs-modules-temp/"
fi
}
/bin/tar -jxpf "${UNIONFS_BINCACHE}" -C "${TEMP}/initramfs-unionfs-tools-temp" ||
gen_die "Could not extract unionfs tools binary cache!";
cd "${TEMP}/initramfs-unionfs-tools-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-unionfs-${UNIONFS_VER}-tools.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-unionfs-${UNIONFS_VER}-tools.cpio.gz
rm -r "${TEMP}/initramfs-unionfs-tools-temp/"
fi
}
/bin/tar -jxpf "${DMRAID_BINCACHE}" -C "${TEMP}/initramfs-dmraid-temp" ||
gen_die "Could not extract dmraid binary cache!";
cd "${TEMP}/initramfs-dmraid-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-dmraid-${DMRAID_VER}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-dmraid-${DMRAID_VER}.cpio.gz
rm -r "${TEMP}/initramfs-dmraid-temp/"
fi
}
gen_die 'LVM2 error: Could not move lvm.static to lvm!'
fi
cd "${TEMP}/initramfs-lvm2-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-lvm2-${LVM2_VER}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-lvm2-${LVM2_VER}.cpio.gz
rm -r "${TEMP}/initramfs-lvm2-temp/"
else # Deprecation warning; remove in a few versions.
if [ -e '/sbin/lvm' ]
done
fi
cd "${TEMP}/initramfs-evms2-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-evms2.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-evms2.cpio.gz
rm -r "${TEMP}/initramfs-evms2-temp/"
fi
}
cd /
local tmp=""
[ -n "${GENSPLASH_RES}" ] && tmp="-r ${GENSPLASH_RES}"
- splash_geninitramfs -g ${CACHE_DIR}/cpio/initramfs-splash-${KV}.cpio.gz ${tmp} ${GENSPLASH_THEME}
+ splash_geninitramfs -g ${CACHE_CPIO_DIR}/initramfs-splash-${KV}.cpio.gz ${tmp} ${GENSPLASH_THEME}
if [ -e "/usr/share/splashutils/initrd.splash" ]; then
if [ -d "${TEMP}/initramfs-gensplash-temp" ]
then
fi
mkdir -p "${TEMP}/initramfs-gensplash-temp/etc"
cd "${TEMP}/initramfs-gensplash-temp/"
- gunzip -c ${CACHE_DIR}/cpio/initramfs-splash-${KV}.cpio.gz | cpio -idm --quiet -H newc
+ gunzip -c ${CACHE_CPIO_DIR}/initramfs-splash-${KV}.cpio.gz | cpio -idm --quiet -H newc
cp "/usr/share/splashutils/initrd.splash" "${TEMP}/initramfs-gensplash-temp/etc"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-splash-${KV}.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-splash-${KV}.cpio.gz
rm -r "${TEMP}/initramfs-gensplash-temp/"
fi
else
}
create_initramfs_overlay_cpio(){
cd ${INITRAMFS_OVERLAY}
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-overlay.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-overlay.cpio.gz
}
print_list()
{
print_list ${!group_modules} > "${TEMP}/initramfs-modules-${KV}-temp/etc/modules/${group}"
done
cd "${TEMP}/initramfs-modules-${KV}-temp/"
- find . | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-modules-${KV}.cpio.gz
+ find . | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-modules-${KV}.cpio.gz
rm -r "${TEMP}/initramfs-modules-${KV}-temp/"
}
chmod +x "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"
chmod +x "${TEMP}/initramfs-aux-temp/sbin/modprobe"
cd "${TEMP}/initramfs-aux-temp/"
- find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_DIR}/cpio/initramfs-aux.cpio.gz
+ find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-aux.cpio.gz
rm -r "${TEMP}/initramfs-aux-temp/"
}
merge_initramfs_cpio_archives(){
- cd "${CACHE_DIR}/cpio/"
+ cd "${CACHE_CPIO_DIR}"
MERGE_LIST="initramfs-base-layout.cpio.gz initramfs-aux.cpio.gz"
- if [ ! -e "${CACHE_DIR}/cpio/initramfs-base-layout.cpio.gz" ]
+ if [ ! -e "${CACHE_CPIO_DIR}/initramfs-base-layout.cpio.gz" ]
then
- gen_die "${CACHE_DIR}/cpio/initramfs-base-layout.cpio.gz is missing."
+ gen_die "${CACHE_CPIO_DIR}/initramfs-base-layout.cpio.gz is missing."
fi
- if [ ! -e "${CACHE_DIR}/cpio/initramfs-aux.cpio.gz" ]
+ if [ ! -e "${CACHE_CPIO_DIR}/initramfs-aux.cpio.gz" ]
then
- gen_die "${CACHE_DIR}/cpio/initramfs-aux.cpio.gz is missing."
+ gen_die "${CACHE_CPIO_DIR}/initramfs-aux.cpio.gz is missing."
fi
- if [ "${BUSYBOX}" -eq '1' -a -e ${CACHE_DIR}/cpio/initramfs-busybox-${BUSYBOX_VER}.cpio.gz ]
+ if [ "${BUSYBOX}" -eq '1' -a -e ${CACHE_CPIO_DIR}/initramfs-busybox-${BUSYBOX_VER}.cpio.gz ]
then
MERGE_LIST="${MERGE_LIST} initramfs-busybox-${BUSYBOX_VER}.cpio.gz"
fi
- if [ "${NOINITRDMODULES}" = '' -a -e ${CACHE_DIR}/cpio/initramfs-insmod-${MODULE_INIT_TOOLS_VER}.cpio.gz ]
+ if [ "${NOINITRDMODULES}" = '' -a -e ${CACHE_CPIO_DIR}/initramfs-insmod-${MODULE_INIT_TOOLS_VER}.cpio.gz ]
then
MERGE_LIST="${MERGE_LIST} initramfs-insmod-${MODULE_INIT_TOOLS_VER}.cpio.gz"
fi
- if [ "${UDEV}" -eq '1' -a -e ${CACHE_DIR}/cpio/initramfs-udev-${UDEV_VER}.cpio.gz ]
+ if [ "${UDEV}" -eq '1' -a -e ${CACHE_CPIO_DIR}/initramfs-udev-${UDEV_VER}.cpio.gz ]
then
MERGE_LIST="${MERGE_LIST} initramfs-udev-${UDEV_VER}.cpio.gz"
fi
- if [ "${DISKLABEL}" -eq '1' -a -e ${CACHE_DIR}/cpio/initramfs-blkid-${E2FSPROGS_VER}.cpio.gz ]
+ if [ "${DISKLABEL}" -eq '1' -a -e ${CACHE_CPIO_DIR}/initramfs-blkid-${E2FSPROGS_VER}.cpio.gz ]
then
MERGE_LIST="${MERGE_LIST} initramfs-blkid-${E2FSPROGS_VER}.cpio.gz"
fi
- if [ "${UNIONFS}" -eq '1' -a -e ${CACHE_DIR}/cpio/initramfs-unionfs-${UNIONFS_VER}-tools.cpio.gz ]
+ if [ "${UNIONFS}" -eq '1' -a -e ${CACHE_CPIO_DIR}/initramfs-unionfs-${UNIONFS_VER}-tools.cpio.gz ]
then
MERGE_LIST="${MERGE_LIST} initramfs-unionfs-${UNIONFS_VER}-tools.cpio.gz"
fi
- if [ "${UNIONFS}" -eq '1' -a -e ${CACHE_DIR}/cpio/initramfs-unionfs-${UNIONFS_VER}-modules-${KV}.cpio.gz ]
+ if [ "${UNIONFS}" -eq '1' -a -e ${CACHE_CPIO_DIR}/initramfs-unionfs-${UNIONFS_VER}-modules-${KV}.cpio.gz ]
then
MERGE_LIST="${MERGE_LIST} initramfs-unionfs-${UNIONFS_VER}-modules-${KV}.cpio.gz"
fi
- if [ "${EVMS2}" -eq '1' -a -e "${CACHE_DIR}/cpio/initramfs-evms2.cpio.gz" ]
+ if [ "${EVMS2}" -eq '1' -a -e "${CACHE_CPIO_DIR}/initramfs-evms2.cpio.gz" ]
then
MERGE_LIST="${MERGE_LIST} initramfs-evms2.cpio.gz"
fi
- if [ "${LVM2}" -eq '1' -a -e "${CACHE_DIR}/cpio/initramfs-lvm2-${LVM2_VER}.cpio.gz" ]
+ if [ "${LVM2}" -eq '1' -a -e "${CACHE_CPIO_DIR}/initramfs-lvm2-${LVM2_VER}.cpio.gz" ]
then
MERGE_LIST="${MERGE_LIST} initramfs-lvm2-${LVM2_VER}.cpio.gz"
fi
- if [ "${DEVFS}" -eq '1' -a -e "${CACHE_DIR}/cpio/initramfs-devfs-${DEVFSD_VER}.cpio.gz" ]
+ if [ "${DEVFS}" -eq '1' -a -e "${CACHE_CPIO_DIR}/initramfs-devfs-${DEVFSD_VER}.cpio.gz" ]
then
MERGE_LIST="${MERGE_LIST} initramfs-devfs-${DEVFSD_VER}.cpio.gz"
fi
- if [ "${DMRAID}" -eq '1' -a -e ${CACHE_DIR}/cpio/initramfs-dmraid-${DMRAID_VER}.cpio.gz ]
+ if [ "${DMRAID}" -eq '1' -a -e ${CACHE_CPIO_DIR}/initramfs-dmraid-${DMRAID_VER}.cpio.gz ]
then
MERGE_LIST="${MERGE_LIST} initramfs-dmraid-${DMRAID_VER}.cpio.gz"
fi
- if [ "${NOINITRDMODULES}" = '' -a -e "${CACHE_DIR}/cpio/initramfs-modules-${KV}.cpio.gz" ]
+ if [ "${NOINITRDMODULES}" = '' -a -e "${CACHE_CPIO_DIR}/initramfs-modules-${KV}.cpio.gz" ]
then
MERGE_LIST="${MERGE_LIST} initramfs-modules-${KV}.cpio.gz"
fi
- if [ "${GENSPLASH}" -eq '1' -a -e "${CACHE_DIR}/cpio/initramfs-splash-${KV}.cpio.gz" ]
+ if [ "${GENSPLASH}" -eq '1' -a -e "${CACHE_CPIO_DIR}/initramfs-splash-${KV}.cpio.gz" ]
then
MERGE_LIST="${MERGE_LIST} initramfs-splash-${KV}.cpio.gz"
fi
# This should always be appended last
- if [ "${INITRAMFS_OVERLAY}" != '' -a -e "${CACHE_DIR}/cpio/initramfs-overlay.cpio.gz" ]
+ if [ "${INITRAMFS_OVERLAY}" != '' -a -e "${CACHE_CPIO_DIR}/initramfs-overlay.cpio.gz" ]
then
MERGE_LIST="${MERGE_LIST} initramfs-overlay.cpio.gz"
fi
}
clear_cpio_dir(){
- if [ -d ${CACHE_DIR}/cpio/ ]
+ if [ "${CLEAR_CPIO_CACHE}" == 'yes' ]
then
- rm -r ${CACHE_DIR}/cpio/
+
+ if [ -d ${CACHE_CPIO_DIR} ]
+ then
+ print_info 1 " >> Clearing old cpio archives..."
+ rm -r ${CACHE_CPIO_DIR}
+ fi
+ fi
+
+ if [ ! -d ${CACHE_CPIO_DIR} ]
+ then
+ mkdir -p ${CACHE_CPIO_DIR}
fi
}
print_info 1 "initramfs: >> Initializing..."
clear_cpio_dir
- mkdir -p ${CACHE_DIR}/cpio/
+ mkdir -p ${CACHE_CPIO_DIR}
print_info 1 " >> Creating base_layout cpio archive..."
create_base_layout_cpio
gen_kerncache_extract_kernel()
{
- [ -d ${tmp} ] && gen_die "temporary directory already exists! Exiting."
- (umask 077 && mkdir ${tmp}) || {
+ [ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
+ (umask 077 && mkdir ${TEMP}) || {
gen_die "Could not create temporary directory! Exiting."
}
- /bin/tar -f ${KERNCACHE} -C ${tmp} -xj
- cp "${tmp}/kernel-${ARCH}-${KV}" "/boot/kernel-${KNAME}-${ARCH}-${KV}" || {
- rm -r ${tmp}
+ /bin/tar -f ${KERNCACHE} -C ${TEMP} -xj
+ cp "${TEMP}/kernel-${ARCH}-${KV}" "/boot/kernel-${KNAME}-${ARCH}-${KV}" || {
+ rm -r ${TEMP}
gen_die 'Could not copy the kernel binary to /boot!'
}
- cp "${tmp}/System.map-${ARCH}-${KV}" "/boot/System.map-${KNAME}-${ARCH}-${KV}" || {
- rm -r ${tmp}
+ cp "${TEMP}/System.map-${ARCH}-${KV}" "/boot/System.map-${KNAME}-${ARCH}-${KV}" || {
+ rm -r ${TEMP}
gen_die 'Could not copy System.map to /boot!'
}
- rm -r ${tmp}
+ rm -r ${TEMP}
}
gen_kerncache_extract_modules()
BUILD_KERNEL=0
# Can make this more secure ....
- [ -d ${tmp} ] && gen_die "temporary directory already exists! Exiting."
- (umask 077 && mkdir ${tmp}) || {
+ [ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
+ (umask 077 && mkdir ${TEMP}) || {
gen_die "Could not create temporary directory! Exiting."
}
- /bin/tar -xj -f ${KERNCACHE} -C ${tmp}
- if [ -e ${tmp}/config-${ARCH}-${KV} -a -e ${tmp}/kernel-${ARCH}-${KV} ]
+ /bin/tar -xj -f ${KERNCACHE} -C ${TEMP}
+ if [ -e ${TEMP}/config-${ARCH}-${KV} -a -e ${TEMP}/kernel-${ARCH}-${KV} ]
then
print_info 1 'Valid kernel cache found; no sources will be used'
KERNCACHE_IS_VALID=1
fi
- /bin/rm -r ${tmp}
+ /bin/rm -r ${TEMP}
else
if [ -e "${KERNCACHE}" ]
then
- [ -d ${tmp} ] && gen_die "temporary directory already exists! Exiting."
- (umask 077 && mkdir ${tmp}) || {
+ [ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
+ (umask 077 && mkdir ${TEMP}) || {
gen_die "Could not create temporary directory! Exiting."
}
- /bin/tar -xj -f ${KERNCACHE} -C ${tmp}
- if [ -e ${tmp}/config-${ARCH}-${KV} -a -e /${KERNEL_DIR}/.config ]
+ /bin/tar -xj -f ${KERNCACHE} -C ${TEMP}
+ if [ -e ${TEMP}/config-${ARCH}-${KV} -a -e /${KERNEL_DIR}/.config ]
then
- test1=$(md5sum ${tmp}/config-${ARCH}-${KV} | cut -d " " -f 1)
+ test1=$(md5sum ${TEMP}/config-${ARCH}-${KV} | cut -d " " -f 1)
test2=$(md5sum /${KERNEL_DIR}/.config | cut -d " " -f 1)
if [ "${test1}" == "${test2}" ]
then
KERNCACHE_IS_VALID=1
fi
fi
- /bin/rm -r ${tmp}
+ /bin/rm -r ${TEMP}
fi
fi
export KERNCACHE_IS_VALID