diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-04-01 09:43:24 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-04-01 09:43:24 +0000 |
commit | f3bf9801305923a41b296f1e016b2b665bc1330b (patch) | |
tree | 45505990f3ff505c004c32084858533bcf1ff316 | |
parent | 729afffc9c537056d5c67c66af4942e862c475f0 (diff) | |
download | drakx-f3bf9801305923a41b296f1e016b2b665bc1330b.tar drakx-f3bf9801305923a41b296f1e016b2b665bc1330b.tar.gz drakx-f3bf9801305923a41b296f1e016b2b665bc1330b.tar.bz2 drakx-f3bf9801305923a41b296f1e016b2b665bc1330b.tar.xz drakx-f3bf9801305923a41b296f1e016b2b665bc1330b.zip |
Reorganize elif code. Better use a case BTW
-rwxr-xr-x | kernel/update_kernel | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/kernel/update_kernel b/kernel/update_kernel index 0d08e01d4..6e43ceeb3 100755 --- a/kernel/update_kernel +++ b/kernel/update_kernel @@ -85,16 +85,12 @@ if [ "$ARCH" == "i386" ]; then #disable any existing resolution!!! /usr/sbin/rdev -v $i 65535 #788 #785 done -else - if [ "$ARCH" == "ppc" ]; then - cp -f "$KERNEL_BOOT_PATH"/boot/vmlinux . -else - if [ "$ARCH" == "ia64" ]; then - cp -f "$KERNEL_BOOT_PATH"/boot/efi/vmlinuz* . +elif [ "$ARCH" == "ppc" ]; then + cp -f "$KERNEL_BOOT_PATH"/boot/vmlinux . +elif [ "$ARCH" == "ia64" ]; then + cp -f "$KERNEL_BOOT_PATH"/boot/efi/vmlinuz* . else - cp -f "$KERNEL_BOOT_PATH"/boot/vmlinuz* . - fi - fi + cp -f "$KERNEL_BOOT_PATH"/boot/vmlinuz* . fi |