@@ -34,8 +34,11 @@ case $LSB_RED_ID in
done
;;
*)
- echo -e "Unsupported distribution"
- exit
+ for i in $(find /lib/modules/ -type d | sort -n -r); do
+ if [[ -d $i/build/ && -f $i/build/Makefile ]]; then
+ KLIBS="$KLIBS $i"
+ fi
+ done
;;
esac
@@ -148,7 +148,14 @@ case $LSB_RED_ID in
get_ubuntu_kernels
;;
*)
- echo -e "Unsupported distribution"
- exit
+ echo -e "Using your available kernels. We recommend to have "
+ echo -e "all supported asupported kernels listed on kernel.org."
+ echo -e "Currently our target is to at least support all kernels "
+ echo -e "in the range 2.6.27 - 3.3. You have:\n":
+ for i in $(find /lib/modules/ -type d | sort -n -r); do
+ if [[ -d $i/build/ && -f $i/build/Makefile ]]; then
+ echo -e " * $(basename $i))"
+ fi
+ done
;;
esac