]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - debian/tools/generic
2 full_version
=`uname -r`
4 # First check for a fully qualified version.
5 this
="/usr/lib/linux-tools/$full_version/`basename $0`"
6 if [ -f "$this" ]; then
10 # Removing flavour from version i.e. generic or server.
11 flavour_abi
=${full_version#*-}
12 flavour
=${flavour_abi#*-}
13 version
=${full_version%-$flavour}
15 if [ -f "$this" ]; then
19 # Before saucy kernels we had no flavour linkage.
20 if dpkg
--compare-versions "$version" lt
"3.11.0"; then
25 # Hint at the cloud tools if they exist (trusty and later)
26 if dpkg
--compare-versions "$version" ge
"3.13.0"; then
31 # Work out if this is an LTS backport or not.
32 codename
=`lsb_release -cs`
34 precise
) base
='3.2.0-9999' ;;
35 trusty
) base
='3.13.0-9999' ;;
40 if [ "$base" != "" ]; then
41 if dpkg
--compare-versions "$version" gt
"$base"; then
47 # Give them a hint as to what to install.
48 echo "WARNING: `basename $0` not found for kernel $version" >&2
50 echo " You may need to install the following packages for this specific kernel:" >&2
51 echo " linux-tools-$version$flavour" >&2
52 $cld echo " linux-cloud-tools-$version$flavour" >&2
54 echo " You may also want to install one of the following packages to keep up to date:" >&2
55 $std echo " linux-tools$flavour" >&2
56 $std $cld echo " linux-cloud-tools$flavour" >&2
57 $lts echo " linux-tools$flavour-lts-<series>" >&2
58 $lts $cld echo " linux-cloud-tools$flavour-lts-<series>" >&2