Since There are/had been several Puppy kernels out version 2.6.39.x the code schould be something like
Code: Select all
KERNEL_VERSION=`uname -r`
KERNEL_VERSION="${KERNEL_VERSION//[[:punct:][:alpha:]]/}"
KERNEL_MAJOR="${KERNEL_VERSION:0:1}"
[ "$KERNEL_MAJOR" = 0 ] && KERNEL_VERSION=1000
KERNEL_VERSION="${KERNEL_VERSION:0:4}"
[ $KERNEL_VERSION -lt 1000 ] && KERNEL_VERSION=$((KERNEL_VERSION*10))
[ $KERNEL_VERSION -ge 2638 ] && COMP="-comp xz" #||gui to select compression