#!/bin/sh # debirf plugin: install-kernel # install a kernel package, indicated by the expected environment # variables: # DEBIRF_PATH # DEBIRF_ROOT # DEBIRF_KERNEL_PACKAGE # # The debirf scripts were written by # Jameson Rollins # and # Daniel Kahn Gillmor . # # They are Copyright 2007, and are all released under the GPL, version 2 # or later. install_kernel_dpkg() { local KNAME=$(basename "$1") cp "$1" "$DEBIRF_ROOT/root/$KNAME" debirf_exec dpkg --install "root/$KNAME" # and clean up, just in case there were missing dependencies. debirf_exec apt-get -f install rm "$DEBIRF_ROOT/root/$KNAME" } install_kernel() { # kernel install settings cat >"$DEBIRF_ROOT/etc/kernel-img.conf" <