|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Genkernel v3
|
|
|
|
|
|
|
|
|
|
GK_V='3.1.0d'
|
|
|
|
|
GK_V='3.1.0e'
|
|
|
|
|
TEMP='/var/tmp/genkernel'
|
|
|
|
|
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
|
|
|
|
|
|
|
|
|
@ -171,8 +171,10 @@ then
|
|
|
|
|
echo
|
|
|
|
|
echo
|
|
|
|
|
eval ${CMD_POSTCONF} | tee -a ${DEBUGFILE}
|
|
|
|
|
CMD_STATUS="${PIPESTATUS[0]}"
|
|
|
|
|
echo
|
|
|
|
|
print_info 1 "<<< Postconf callback exit status: ${PIPESTATUS[0]}"
|
|
|
|
|
print_info 1 "<<< Postconf callback exit status: ${CMD_STATUS}"
|
|
|
|
|
[ "${CMD_STATUS}" -ne 0 ] && gen_die '--postconf failed!'
|
|
|
|
|
else
|
|
|
|
|
echo
|
|
|
|
|
print_info 1 '>>> Postconf cancelled...'
|
|
|
|
@ -188,7 +190,10 @@ then
|
|
|
|
|
[ -z "${GENSPLASH_THEME}" ] && [ -e /etc/conf.d/splash ] && source /etc/conf.d/splash
|
|
|
|
|
[ -z "${GENSPLASH_THEME}" ] && GENSPLASH_THEME=default
|
|
|
|
|
print_info 1 " >> Installing gensplash [ using the ${GENSPLASH_THEME} theme ]..."
|
|
|
|
|
# 2.6.9
|
|
|
|
|
sed -i -e 's:$(obj)/gen_init_cpio $(initramfs-y) FORCE:$(if $(shell [ ! -f $(obj)/initramfs_data.cpio ] \&\& echo 1 ), $(obj)/gen_init_cpio $(initramfs-y)):' ${KERNEL_DIR}/usr/Makefile
|
|
|
|
|
# 2.6.10
|
|
|
|
|
sed -i -e 's:$(obj)/gen_init_cpio \\:$(if $(shell [ ! -f $(obj)/initramfs_data.cpio ] \&\& echo 1 ), $(obj)/gen_init_cpio $(initramfs-y) $(obj)/initramfs_list):' -e 's:$(initramfs-y) $(obj)/initramfs_list FORCE::' ${KERNEL_DIR}/usr/Makefile
|
|
|
|
|
splash_geninitramfs -g ${KERNEL_DIR}/usr/initramfs_data.cpio.gz ${GENSPLASH_THEME}
|
|
|
|
|
gunzip ${KERNEL_DIR}/usr/initramfs_data.cpio.gz
|
|
|
|
|
else
|
|
|
|
@ -231,8 +236,10 @@ then
|
|
|
|
|
echo
|
|
|
|
|
echo
|
|
|
|
|
eval ${CMD_CALLBACK} | tee -a ${DEBUGFILE}
|
|
|
|
|
CMD_STATUS="${PIPESTATUS[0]}"
|
|
|
|
|
echo
|
|
|
|
|
print_info 1 "<<< Callback exit status: ${PIPESTATUS[0]}"
|
|
|
|
|
print_info 1 "<<< Callback exit status: ${CMD_STATUS}"
|
|
|
|
|
[ "${CMD_STATUS}" -ne 0 ] && gen_die '--callback failed!'
|
|
|
|
|
else
|
|
|
|
|
echo
|
|
|
|
|
print_info 1 ">>> Callback cancelled..."
|
|
|
|
|