Page MenuHomePhabricator
Paste P16823

kernel-ver-check
ActivePublic

Authored by Kormat on Thu, Jul 15, 9:55 AM.
#!/bin/bash
min_ver=$1
shift
sudo cumin "$@" "echo dpkg --compare-versions $min_ver le \$(uname -v | cut -f4 -d' ') && echo 'OK' || { echo 'NOT OK'; exit 1; }"

Event Timeline

Usage: kernel-ver-check 4.19.171-2 'A:db-all and A:buster'

Example output:

image.png (358×1 px, 71 KB)