diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-01-22 10:43:31 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-01-22 10:43:31 +0000 |
commit | 9a07f5cd6da42c944ddebd05354119fa61814e82 (patch) | |
tree | 15d14910bda73b36fe6580e930b123c8aa876506 /kernel/update_kernel | |
parent | 196739b0b028a811d868ca933022b1aa63d83184 (diff) | |
download | drakx-backup-do-not-use-9a07f5cd6da42c944ddebd05354119fa61814e82.tar drakx-backup-do-not-use-9a07f5cd6da42c944ddebd05354119fa61814e82.tar.gz drakx-backup-do-not-use-9a07f5cd6da42c944ddebd05354119fa61814e82.tar.bz2 drakx-backup-do-not-use-9a07f5cd6da42c944ddebd05354119fa61814e82.tar.xz drakx-backup-do-not-use-9a07f5cd6da42c944ddebd05354119fa61814e82.zip |
the rpm passed as parameter can now be a relative file or an absolute file
Diffstat (limited to 'kernel/update_kernel')
-rwxr-xr-x | kernel/update_kernel | 1 |
1 files changed, 1 insertions, 0 deletions
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 |