diff options
Diffstat (limited to 'arch/riscv/boot/install.sh')
-rwxr-xr-x | arch/riscv/boot/install.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/riscv/boot/install.sh b/arch/riscv/boot/install.sh index 4c63f3f064..a8df759151 100755 --- a/arch/riscv/boot/install.sh +++ b/arch/riscv/boot/install.sh @@ -17,15 +17,18 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) -if [ "$(basename $2)" = "Image.gz" ]; then +case "${2##*/}" in # Compressed install +Image.*|vmlinuz.efi) echo "Installing compressed kernel" base=vmlinuz -else + ;; # Normal install +*) echo "Installing normal kernel" base=vmlinux -fi + ;; +esac if [ -f $4/$base-$1 ]; then mv $4/$base-$1 $4/$base-$1.old |