From f58ba2ca6ff30e4c1d9b5fd727cefe01cbc8ff9e Mon Sep 17 00:00:00 2001 From: Erich Smith Date: Mon, 18 Feb 2019 18:42:49 -0500 Subject: [PATCH] OS-related kmd source for linux (#101) Tested on Alpine, Ubuntu and Centos. --- sources/linux/os.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sources/linux/os.sh diff --git a/sources/linux/os.sh b/sources/linux/os.sh new file mode 100644 index 00000000..8646e19f --- /dev/null +++ b/sources/linux/os.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env kmd +exec cat /etc/os-release +save output +extract NAME="(.*)" +save system.platform + +load output +extract VERSION_ID=(.*) +save system.version +remove output + +exec uname -r +save system.build \ No newline at end of file