WiringPi: Add showing current kernel version to the help text
Signed-off-by: Deokgyu Yang <secugyu@gmail.com> Change-Id: I8c1bb3e900ea2ddfa497b8949f7e2909666b3f5b
This commit is contained in:
@@ -832,6 +832,13 @@ static void doVersion (char *argv [])
|
||||
"Hardkernel",
|
||||
piMakerNames [maker]);
|
||||
|
||||
// Show current kernel version
|
||||
printf(" * Current devices' kernel version: %d.%d.%d-%d\n",
|
||||
kernelVersion->major,
|
||||
kernelVersion->minor,
|
||||
kernelVersion->revision,
|
||||
kernelVersion->patch);
|
||||
|
||||
// Check for device tree
|
||||
if (stat ("/proc/device-tree", &statBuf) == 0) // We're on a devtree system ...
|
||||
printf (" * Device tree is enabled.\n") ;
|
||||
|
||||
Reference in New Issue
Block a user