From 9a07f5cd6da42c944ddebd05354119fa61814e82 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 22 Jan 2004 10:43:31 +0000 Subject: the rpm passed as parameter can now be a relative file or an absolute file --- kernel/update_kernel | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/update_kernel') diff --git a/kernel/update_kernel b/kernel/update_kernel index cdfdf3e19..965029e4f 100755 --- a/kernel/update_kernel +++ b/kernel/update_kernel @@ -87,6 +87,7 @@ fi #- allow specifying a kernel file on commandline (./update_kernel /RPMS/kernel-2.4.22.10mdk-1-1mdk.i586.rpm 2.4.22-10mdk) if [ -n "$1" ]; then rpm=$1 + [ $rpm = ${rpm#/} ] && rpm=`pwd`/$rpm elif [ "$ARCH" == "ia64" ] || [ "$ARCH" == "ppc" ]; then rpm=$RPMS/kernel-[0-9]*.rpm else -- cgit v1.2.1