summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkernel/update_kernel8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/update_kernel b/kernel/update_kernel
index faa298f69..0d08e01d4 100755
--- a/kernel/update_kernel
+++ b/kernel/update_kernel
@@ -47,7 +47,7 @@ function create_modules() {
ARCH=`uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/'`
if [ "$ARCH" == "ia64" ] || [ "$ARCH" == "ppc" ]; then
- rpm=$(rpm -qp --qf '%{name}' $RPMS/kernel-smp-*.rpm | perl -pe 's/kernel-smp-((\.?[0-9]+){3})\.(.*)/$1-${3}smp/')
+ rpm=$(rpm -qp --qf '%{name}' $RPMS/kernel-[0-9]*.rpm | perl -pe 's/kernel-((\.?[0-9]+){3})\.(.*)/$1-${3}/')
else
rpm=$(rpm -qp --qf '%{name}' $RPMS/kernel-BOOT-*.rpm | perl -pe 's/kernel-BOOT-((\.?[0-9]+){3})\.(.*)/$1-${3}BOOT/')
fi
@@ -57,9 +57,9 @@ if [ -n "$rpm" -a ! -e $ALL_KERNELS/$rpm ]; then
rm -rf $rpm ; mkdir $rpm
cd $rpm
if [ "$ARCH" == "ia64" ] || [ "$ARCH" == "ppc" ]; then
- rpm2cpio $RPMS/kernel-2*.rpm | cpio -id
- else
- rpm2cpio $RPMS/kernel-BOOT-*.rpm | cpio -id
+ rpm2cpio $RPMS/kernel-[0-9]*.rpm | cpio -id
+ else
+ rpm2cpio $RPMS/kernel-BOOT-*.rpm | cpio -id
fi
find -type f -name "*.o.gz" | xargs gunzip
cd ../..