bash:distro-detection
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
bash:os-detection [2020/04/21 15:28] – created dreiggy | bash:os-detection [2020/04/21 15:29] – dreiggy | ||
---|---|---|---|
Line 3: | Line 3: | ||
Snippet for Linux distro detection: | Snippet for Linux distro detection: | ||
- | [code bash] | + | <code bash> |
# Check OS and VERSION | # Check OS and VERSION | ||
if [ -f / | if [ -f / | ||
Line 34: | Line 34: | ||
VER=$(uname -r) | VER=$(uname -r) | ||
fi | fi | ||
- | [/code] | + | </code> |
bash/distro-detection.txt · Last modified: 2020/04/21 15:31 by dreiggy