Lines 109-115
echo "Checking for available kernel packages..."
Link Here
|
109 |
KERNEL_PKGS="$(apt-cache pkgnames kernel-image)" |
109 |
KERNEL_PKGS="$(apt-cache pkgnames kernel-image)" |
110 |
|
110 |
|
111 |
# set kernel flavour. if not defined with -t option, use current |
111 |
# set kernel flavour. if not defined with -t option, use current |
112 |
current_kernel_flavour="$(uname -r | cut -d "-" -f2,3)" |
112 |
current_kernel_flavour="$(uname -r)" |
|
|
113 |
current_kernel_flavour={current_kernel_flavour#*-} |
114 |
current_kernel_flavour=${current_kernel_flavour%-alt*} |
113 |
kernel_flavour="${kernel_flavour:-$current_kernel_flavour}" |
115 |
kernel_flavour="${kernel_flavour:-$current_kernel_flavour}" |
114 |
|
116 |
|
115 |
# check that we have at least one kernel with defined kernel_flavour |
117 |
# check that we have at least one kernel with defined kernel_flavour |
116 |
- |
|
|