Skip to content

Commit

Permalink
OS-related kmd source for linux (#101)
Browse files Browse the repository at this point in the history
Tested on Alpine, Ubuntu and Centos.
  • Loading branch information
erichs authored and rmcvey committed Feb 18, 2019
1 parent 8b9d168 commit f58ba2c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sources/linux/os.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f58ba2c

Please sign in to comment.