Skip to content
90-loaderentry-compat.install 351 B
Newer Older
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

COMMAND="$1"
KERNEL_VERSION="$2"
#BOOT_DIR_ABS="$3"
KERNEL_IMAGE="$4"
KERNEL_DEST="/boot/vmlinuz-$KERNEL_VERSION"

case $COMMAND in
    add)    cp "$KERNEL_IMAGE" "$KERNEL_DEST";;
    remove) rm -f "$KERNEL_DEST";;
esac

exit 0