diff --git a/seeed-voicecard b/seeed-voicecard index dc2aa1c..94ccd13 100755 --- a/seeed-voicecard +++ b/seeed-voicecard @@ -42,6 +42,8 @@ function get_kernel_version() { [ -z "$_VER_RUN" ] && { ZIMAGE=/boot/kernel.img IMG_OFFSET=$(LC_ALL=C grep -abo $'\x1f\x8b\x08\x00' $ZIMAGE | head -n 1 | cut -d ':' -f 1) + # 64-bit-only kernel package + [ ! -f /boot/kernel.img ] && [ -f /boot/kernel8.img ] && ZIMAGE=/boot/kernel8.img _VER_RUN=$(dd if=$ZIMAGE obs=64K ibs=4 skip=$(( IMG_OFFSET / 4)) 2>/dev/null | zcat | grep -a -m1 "Linux version" | LC_ALL=C sed -e 's/^.*Linux/Linux/' | strings | awk '{ print $3; }') } echo "$_VER_RUN"