kernel-getlast: use /proc/config.gz as default one for new kernels.

This commit is contained in:
Kolan Sh 2013-04-01 22:36:26 +04:00
parent 4ab8dcc65b
commit 95bcb8e9ae
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ vmlinuz_file=/boot/`echo $new_kernel | sed 's~^linux~vmlinuz~'`
# genkernel or kernel-rebuild ?
if [ `which genkernel 2>/dev/null` ]; then
[ -f /proc/config.gz ] && zcat /proc/config.gz >/usr/src/linux/.config
[ 0 -ne $? ] && echo "zcat /proc/config.gz >/usr/src/linux.config failed ;-( =======" && exit -1
genkernel $GENKERNEL_ARGS all
[ 0 -ne $? ] && echo "genkernel $GENKERNEL_ARGS all failed ;-( =======" && exit -1